I have parents, child and sub child work items in Azure and I would like them to sync to Jira as Issue Links not sub-taks. please advise how to sync issuelink on Jira cloud from azure.
Answer by Francis Martens (Exalate) on 04 September 2020
You need to send the parent in the replica and use that information to create the link on the Jira side.
The type of link is important as on Jira stories are linked to their epic using the epic link and subtasks to their parent using the subtask link…
Comments:
Harinder Singh commented on 04 September 2020
Hi Martens
can you share snippet how to create issue, what information is required? I do have parentid coming from Azure side. thank you.
Francis Martens (Exalate) commented on 04 September 2020
The snippet on the destination side should help you get the job done
Harinder Singh commented on 04 September 2020
Hi Martens
I know this snippet i am using for sub-task but the problem is that in JIRA you cant have sub-task of another sub-task. So i want to add all sub-task items as IssueLinks, so how can i add issue links in Jira side please advise. thank you.
Harinder Singh commented on 07 September 2020
Hi Martens
any help / snippet?
thanks
Francis Martens (Exalate) commented on 07 September 2020
I’m sure you can bake your logic starting from there
Harinder Singh commented on 08 September 2020
Thanks Marten, but link you provided is for Jira server and we are talking about cloud. so how?
Francis Martens (Exalate) commented on 08 September 2020
Ah sorry - forgot this is cloud
I don’t have a solution ready to share.
You will have to use the REST api provided by Jira Cloud to craft the solution.
Check for an example this page How to sync Group Picker custom field
It shows how you can interact with the Jira cloud using Rest.