|
If you are working with code, you can action issues in JIRA Studio via Subversion commit messages. By using particular keywords in your commit message, you can log work, add comments or change the status of an issue. This makes it easy for you to maintain any issues that are related to the code you are changing. |
Basic command line syntax
|
| Actioning Issues via Commit Messages
The basic command line syntax for your commit comment is: For example, if you include the following text in your commit message, JIRA Studio will record 2 days and 5 hours of work against issue JRA-123, when you perform your commit:
|
Advanced command line syntax
|
|
If you wish to perform multiple actions on issues, you can create composite commands by combining keywords, as described below.
The commit message syntax allows you to do even more complicated actions, than the examples described above. If you would like to view the formal syntax for the commit message definition, it is available on this FAQ |
Commit commands
|
|
|
Error handling
|
|
If you have specified a commit command incorrectly, your code changes will still be committed to the repository. However, the associated JIRA issue action(s) will not be executed and you will be notified via email. Possible commit command errors include:
|







12 Comments
Hide/Show CommentsMay 31, 2010
Anonymous
This special comments are only available in the JIRA STUDIO, or other versions of JIRA has these features. ?
Jul 05, 2010
Tim Moore
This feature is part of JIRA Studio, but it is possible (though not officially supported) to set this up in your own standalone instances of JIRA and FishEye.
The instructions were written by James Roper in our developer blog.
Jun 29, 2010
Eric Jain
Should mention that these commands only work when the issue has been assigned to you. Don't know if that's a bug or a feature...
Jul 05, 2010
Tim Moore
Eric, that's not necessarily the case. It should work for any issue that you have permissions on to perform the actions you specify. Could it be that the permission scheme used on your project is configured to only allow assignees to resolve issues?
Jul 06, 2010
Eric Jain
We're using the "Default Permission Scheme", which allows a developer to resolve an issue without having it assigned first. Should I open an issue for that?
Jul 07, 2010
Tim Moore
Yes, please open one at https://support.atlassian.com/browse/JST with your instance details.
Jul 08, 2010
Eric Jain
Upon further investigation it turns out that #resolve works, but #start (which requires the issue to be assigned first) doesn't.
So I guess what I'm really asking for is an option to assign issues automatically when processing commit messages: https://studio.atlassian.com/browse/JST-2614
Jul 08, 2010
Tim Moore
Great idea!
Aug 24, 2010
Anonymous
Is there any way to set custom fields using commit messages?
Jan 12, 2011
Adrian Scott
We generally change the assignment of the issue to the raiser upon resolution. Could we add an assignee to the #resolve syntax?
The advantage to this is that the raiser sees the resolution comments in their email notification that they are now responsible for testing/acceptance of the fix.
Jan 27, 2011
Anonymous
Does it works if Subversion repository(where commit happens) and Issues(actioning with) are belong to different projects?
Apr 06, 2011
Michael C
Is this procedure to get Actionable Commit messages still necessary in Jira 4.3 and Fisheye 2.5?
I have just finished the dragonslayer and have purchased the startup licenses in order to replace our inhouse Mantis system. This is a key feature for us, being able to change issue status from svn commits and seems like something that fisheye might already do since it is parsing the commits.
Does this procedure still have to be set up as mentioned above in order to get actionable commits like:
SANDBOX-6 #resolve #comment This was a simple issue to resolve
Thanks.