Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to import Jira issues to GitHub?

Tags:

github

jira

I've tried exporting issues from both GitHub and Jira to CSV files, but I've never tried exporting Jira issue then importing it to GitHub, is this possible? If so, what would be the best way to approach something like this?

like image 257
watchingdogs Avatar asked Jun 29 '15 21:06

watchingdogs


People also ask

Can we integrate Jira with GitHub?

We can connect our Github Code and Jira with the help of the app “GitHub for Jira” which is available on Jira Marketplace. The first app in the above image with the name “Github for Jira” needs to be integrated with our Jira cloud.

How do I link my Jira project to GitHub repository?

From the Jira Software dashboard click the (settings) icon. Choose Applications. From the Integrations section on the left, choose DVCS accounts. Click Link Bitbucket Cloud or GitHub account.

Can you export issues from Jira?

Yes, you can export Jira issues into a CSV format. The most direct way to do this is to first open the issue navigator and search for the issues you want to export. In Jira Server/Data Center you can go to the top navigator bar and choose Issues → Search for issues.

Is GitHub better than Jira?

Jira runs on the cloud or can be set up on our own server to be used for secure or financial apps where privacy is the main concern, whereas Github runs on its enterprise cloud services. Jira less points score, and less customer experience index, whereas Github has more points scored and more customer experience index.


2 Answers

There is simply not a "Import issues from JIRA" feature in GitHub.

The way I see it you have two options, either to integrate your current JIRA instance with GitHub or migrate the JIRA issues into GitHub issues using your own criteria and migration script.

GitHub and JIRA Integration

I would very much like to add all the instructions here but it's one of those cases where a link to the documentation makes much more sense.

There's also a video on youtube which is quite short and easy to follow.

Migrating JIRA issues into GitHub Issues

In order to do this you would have to write your own script that reads issues from the JIRA REST API and creates new ones using GitHub Issues REST API.

Note that JIRA and GitHub issues are different in nature, so your script would have to choose how to migrate one type of issue to another.

I hope this helps.

like image 169
bitoiu Avatar answered Sep 22 '22 04:09

bitoiu


Another way is to export the JIRA issues as XML file. The following project provides Python 2 scripts to import such a file into a GitHub project via its REST API: https://github.com/hbrands/jira-issues-importer

Besides issues with comments, it imports milestones, labels and components as labels. References to issues in comments are to some degree converted. Also, JIRA relationships like "blocks" and "depends on" are migrated to special issue comments in GitHub.

It avoids the problem of running into abuse rate limits by using a special Issue Import API.

Please read the sections about the features, caveats, assumptions and prerequisites on the project site. Be sure to test the issue migration with a GitHub test project first.

like image 39
Holger Avatar answered Sep 22 '22 04:09

Holger