Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve a JIRA issue from GitHub commit messages?

Tags:

github

jira

I have configured the JIRA bug tracking system with GitHub DVCS. But when I commit the task with message of JIRA key and resolve status, it does not change the status as resolved in JIRA. Is there any command to change the bug status in JIRA from GitHub commit message?

like image 714
mike_dan Avatar asked Aug 15 '13 15:08

mike_dan


People also ask

How do I link a git commit to a Jira ticket?

Open a Jira issue then go to the Git Commits tab. In this tab, you will see commits, files changed, links to external repository, commit author and more. git commit message to link the commit to this issue. The git commit will get associated with the Jira issue if the commit message includes the exact issue ID.

How do you reference an issue in a commit message?

You just need to include #xxx in your commit message to reference an issue without closing it. With the new GitHub issues 2.0, you can use these synonyms to reference an issue and close it (in your commit message).

Can you use markdown in commit messages?

Use Markdown to format your text. Some tools like GitHub will render Markdown when showing commit messages. Use asterisks bullets when you need to explain a long list of changes.


1 Answers

Here is what you need to do to enable 'smart commits':

https://confluence.atlassian.com/display/AOD/Enabling+DVCS+smart+commits

Then, the syntax to use in the commit messages:

<ISSUE_KEY> #<CMD> <optional CMD_PARAMETERS>

Example:

JRA-123 #resolve

More info on the syntax here:

https://confluence.atlassian.com/display/AOD/Processing+JIRA+issues+with+commit+messages

like image 152
haidarvm Avatar answered Oct 09 '22 01:10

haidarvm