Menu

Links to unsupported ItemTrackers

Help
Doug Hagan
2009-03-24
2013-05-01
  • Doug Hagan

    Doug Hagan - 2009-03-24

    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

     
    • mmckechney

      mmckechney - 2009-03-26

      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

       

Log in to post a comment.