Occasionally I'll have forgotten to put an issue key in a commit message or other developers I work with, so the change set doesn't show up on source tab of the JIRA issue.
How can I retroactively link a commit to an issue so it shows up in the source tab of an issue?
If you're using subversion together with fisheye, it's not enough to edit the commit message. You've also got to tell fisheye to re-scan subversion's non-versioned properties (revprops) for this commit. This is on the maintenance tab when you administer the fisheye repository.
But wait! That's still not enough! You've got to go to jira administration and flush the fisheye revision cache on this page: http://myjira.mycompany.com/secure/admin/ViewFishEyeCache.jspa.
At our site, we've got all this automated with a post-revprop-change hook. It helps if your subversion server is running on the same machine as fisheye. That way, you can run fisheyectl.sh from the post-revprop-change hook to tell fisheye to rescan. It would help a lot if there were REST calls for fisheye and jira to get these actions done, but sadly that's not the case.
Just as an update, the Fisheye REST API does support rescanning a revision's metadata: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories:name:rescan-metadata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's helpful, although you can't use the API token to call that, which means you have to embed somebody's password in your commit hook. Also there doesn't seem to be a JIRA REST API for flushing the cache (https://docs.atlassian.com/jira/REST/latest/)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just FYI - we asked Atlassian Support about the issue with using an API Token and they ended up creating https://jira.atlassian.com/browse/FE-5649
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, we were able to use the rescan-metadata API (with an Admin user) without flushing the cache
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, I'm using GIT and have the same problem. I don't know SVN but in GIT you cannot ammend a commit's message one you've pushed it to the remote. I would like to have a way to manually link a commit to an issue, for example, by adding the SHA1 of the commit to the comment of an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edit the commit message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.