Issue Linking JIRA using CSV import

AKASH BHARDWAJ September 6, 2015

Hi All,

I am performing CSV import to bulk upload issues, I am able to import all fields along with Sub task.

I am now facing huge issues to preserve Issue Linking. I have found articles which speak about Jelly Script and so.

 

I am not much of scripting expert. 

 

I could do some workaround, It would be great help if someone can provide more info on this issue.

 

Many Thanks,
Akash 

2 answers

1 vote
Taha Khanzada
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2015

Hi Akash,

You could use REST API for creating Issue link, you can refer below link for example 

https://developer.atlassian.com/jiradev/jira-platform/other/guide-jira-remote-issue-links/jira-rest-api-for-remote-issue-links

In past done issue migration through CSV import and for issue linking we used REST API mentioned in above example, you can give it a try.

Taha

 

AKASH BHARDWAJ September 7, 2015

@Taha Khanzada : Sorry, if this sounds silly question, not userd REST before. Say my JIRA URL is http://mycompany:8080 and issue where issue links needs to be created key is ABC-123. How do i fire the command over browser?? Many Thanks, Akash

Taha Khanzada
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2015

TST-1 is source ticket( from which issue links needs to be created) and ABC-123 is destination one Most simple one is CURL command line, here is below example using CURL command. I have used one of the sample in URL {code} curl -D- -u username:password -X PUT --data @rest.txt -H "Content-Type: application/json" http://mycompany:8080/jira/rest/api/latest/issue/TST-1/remotelink {code} Content of file rest.txt file { "globalId": "system=http://mycompany:8080/browse/ABC-123";, "object": { "url":"http://mycompany:8080/browse/ABC-123";, "title":"Crazy customer support issue (RESOLVED)" } } Basically REST is independent of the language you can write script in language you are comfortable in JAVA, jQuery, Python or even VBS ( Excel) etc. For Browser based client you can try "Postman Rest Client" from Chrome webstore Taha

0 votes
Ramakrishna Anumalla December 22, 2015

Hi you can create issue linking through csv in below given format

issue Key cloned bySummaryissue id clones
TEST-166name of issueTEST-168
TEST-167name of issueTEST-169

Suggest an answer

Log in or Sign up to answer