Does anyone know if it's possible to change the status of a Jira issue using a Git commit? I am using Jira and Git with the Jira Git plugin and I know I can reference an issue by just adding the name in the commit but I thought a commit message like "ISSUE-1 #close" would set the status to closed. But this doesn't seem to work.
Am I doing something wrong or is it not possible to send commands via the commit message?
To close a request: From your service project, go to Queues. Select the request you want to resolve. Select the Status and transition it to Resolved.
Manually Link Git Commits to Jira Issues To manually associate a git commit to a Jira issue, access the Change commit issues feature from the following locations: Project page > Git Commits > click View Full Commit. Issue page > Git Commits tab > click View Full Commit.
The git commit will get associated with the Jira issue if the commit message includes the exact issue ID. The Git Integration for Jira app will automatically index new commits and associate the referenced issue. For better readability, place the issue key text at the start of the commit message.
It is also possible to close several issues in the same commit: just repeat several time the pattern to close issues. For example, the following commit message: add new quick sort algorithm, fixes #4, resolve #6, closed #12 would close, the issues 4, 6 & 12 of the project on which the commit would occur.
If you have FishEye installed you can use smart commits to trigger various actions from a single commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With