Import github commits containing trac ticket reference syntax

Russell Taylor November 18, 2013

We are thinking of migrating to JIRA from Trac. Our code repositories are hosted at GitHub. I've done a test import of the trac and then went to set up the link to GitHub. Nothing shows up in the commit tab.

Of course, since we've been using Trac commit messages have been referencing issues in the way Trac expects - i.e. Re #1234 or refs #1234. Is there a way to get the existing commits to appear under the commits tab (the issue numbers do match after the import)? I realise that in general there'd be an ambiguity, but we only have one project in our JIRA account. (Of course if we went with JIRA we would start including the correct key in the commits, but we would really like to have the historical commits fully included as well.)

2 answers

0 votes
Russell Taylor December 8, 2013

Still waiting for an answer one way or the other to the question of whether, when importing from trac, there's any way to get previous commits to show up in the JIRA commit tab even though they used the syntax for hooking into trac.

0 votes
AgentSmith
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2013

Did you establish the link via the DVCS connection? You can verify that by going here:

https://<yourinstance>/secure/admin/ConfigureDvcsOrganizations!default.jspa

More details are available here:

https://confluence.atlassian.com/display/AOD/Linking+a+bitbucket+or+GitHub+repository+with+JIRA+OnDemand

As far as syntax, it would be ISSUE_KEY #<transition> <comment_string> so for example:

JRA-090 #close Fixed this today

Full list of syntax options:

https://confluence.atlassian.com/display/AOD/Processing+JIRA+issues+with+commit+messages

Hope this helps!

Russell Taylor November 19, 2013

Yes, the link is set up and I can make test commits appear fine. What I want to know is whether it's possible to make our 29k existing commits show up under the commits tab for the 8000 issues imported from trac. Naturally, the commit messages for these do not use ISSUE-KEY, but rather "Re #NNNN".

Suggest an answer

Log in or Sign up to answer