I cannot find any good documentation on this. Some examples have led me to believe the following are acceptable, but I'm mostly curious about the "relates to" option.
* sub-task-link
* Duplicate
* Blocks
In fact all the docs for the json import are lacking quite a bit: https://confluence.atlassian.com/adminjiraserver/importing-data-from-json-938847609.html. Any help out there?
To be complete for anyone else struggling through this, here we go.
1) The mention I made about the uri/url mix up was unrelated to this post. It was an issue with importing attachments. The i and l look so similar. Don't let that one get you.
2) For next gen projects, this page (shows you issue names and allows you to make your own. Once I had the issue linking on the correct level of the JSON file, any name seems to work and creates an issue link name. I preferred not to do that but instead map to the defaults.
Hello @iotim
Welcome to the community.
It doesn't really matter what you name the fields in the CSV, because when you execute the CSV import process you have to map each of those to a field that exists in Jira. It doesn't matter if the name in your file does not exactly match the name in Jira.
For creating links between issues during the import, what you select during mapping is the Link Relationship. See the "Links & Sub-tasks" section in the image. The options you see there will depend on your instance configuration.
And the result is that the issue created by the import gets the Outward Description while the issue you specify in the field gets the Inward Description, as specified in the Issue Links Type page.
https://<yourURL>/secure/admin/ViewLinkTypes!default.jspa
So, for this sample data
Issue Type, Summary, Description, Clones
Story,Test Summary,Test Description,CK-1
...when I map the Clones field to the 'Link "Cloners" ' Jira field, then when viewing the newly created issue I will see that under Links is says "Clones CK-1". And in issue CK-1, it will say "Is cloned by" the newly created issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I appreciate your reply, but I am importing a JSON file, not CSV. I found CSV to be lacking in many respects. Honestly I've tried many combinations, even exactly as the examples show, and I haven't been able to get any linking to occur.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, I apologize. I overlooked that you said json in your post title.
I would guess that the names you need to use are the Link Names you would see if you navigated to the Administration (gear icon) page for Issues and looked at the Issue Links for your specific instance.
https://confluence.atlassian.com/adminjiraserver/configuring-issue-linking-938847862.html
I will have to do some additional research to see if I can work out how this is done. I haven't worked much with JSON importing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One other small thing I would point out is the document reference you provided is for Data Center, but your post is tagged as Cloud. Here is the link to the document for Cloud.
https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-json/
And I'm also guessing that the sourceId and destionationId fields in the links section are referring to the externalId field values in the issues section.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Turns out I was using url instead of uri and had it under the project level instead of at the same level. Now it’s working but I didn’t have time to test relation names. I did try “duplicates” which matches the name in the interface so I’ll try the other names as shown in the interface.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.