Import github commits containing trac ticket reference syntax

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

This widget could not be displayed.
Jason Worley Atlassian Team Nov 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!

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".

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

307 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you