I am looking for a way to convert the item tracker code in the commit email into a link to my (unsupported) item tracker website. I use JIRA (http://www.atlassian.com/software/jira/), and I'm not really interested in interacting with it in any other way than with a link to the issue.
What I want is a way to take advantage of the regex functionality to replace an arbitrary part of the commit message with a URL based on it, purely for the purposes of creating the commit email. This would have no effect on the actual commit message in SVN, but would make the email link to my item tracker for convenience in the email sent after commit.
So the following commit message:
MAIN-1234: Did something.
would be converted to:
<a href="http://myjira?issue=MAIN-1234">MAIN-1234</a>: Did something.
As far as I can tell, regexes are currently only supported inside one of the three predefined ItemTrackers tags. Is there some other way I could have this replacement take place?
Thanks,
Doug
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Doug,
Yes, strictly speaking to do what you're looking for, it would require a custom ItemTracker to be created. However. you might be able to get away with re-using a BugzillaConfig element by just using the "ItemFindRegex" and "ItemLinkURL" attributes. Since the Bugzilla item tracker doesn't have anything strictly tied to a bugzilla API, it just might work.
Let me know!
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am looking for a way to convert the item tracker code in the commit email into a link to my (unsupported) item tracker website. I use JIRA (http://www.atlassian.com/software/jira/), and I'm not really interested in interacting with it in any other way than with a link to the issue.
What I want is a way to take advantage of the regex functionality to replace an arbitrary part of the commit message with a URL based on it, purely for the purposes of creating the commit email. This would have no effect on the actual commit message in SVN, but would make the email link to my item tracker for convenience in the email sent after commit.
So the following commit message:
MAIN-1234: Did something.
would be converted to:
<a href="http://myjira?issue=MAIN-1234">MAIN-1234</a>: Did something.
As far as I can tell, regexes are currently only supported inside one of the three predefined ItemTrackers tags. Is there some other way I could have this replacement take place?
Thanks,
Doug
Doug,
Yes, strictly speaking to do what you're looking for, it would require a custom ItemTracker to be created. However. you might be able to get away with re-using a BugzillaConfig element by just using the "ItemFindRegex" and "ItemLinkURL" attributes. Since the Bugzilla item tracker doesn't have anything strictly tied to a bugzilla API, it just might work.
Let me know!
Thanks,
Mike