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

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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,063 views 13 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot