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?
1 Answer
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
-
1In order to be able to do #resolve, should I have a Resolve transition on workflow? Is it not a workflow state command? Commented May 14, 2015 at 14:50
-
Yes, #resolve has to be a 'Transition' in your workflow. It is not the state, but the transition which needs to be supplied to smart commits. confluence.atlassian.com/bitbucket/… explains it in more detail. Commented May 4, 2016 at 10:02