Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API to link multiple defects as child links

JY December 21, 2022

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/

 

I am referring to above API docs.

I have multiple defects up to 100+ to link to an user story or EPIC in jira.

I am using search to filter the issue and export csv to get all issue keys.

How do I make use the JIRA API to link all issue keys as a child under the particular user story?

 

1 answer

0 votes
Sunny Ape
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.
December 21, 2022

Use Edit issue endpoint

J_D December 23, 2022

Could you give an example to PUT multiple issues linked?

Sunny Ape
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.
December 23, 2022

There are examples in the documentation

JY December 26, 2022

I do not think your answer is correct. there is no example showing PUT multiple issues to a single issue.

Sunny Ape
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.
December 27, 2022

In your original post you said you wanted to 'link the issue keys as a CHILD' so I assumed you wanted to create a PARENT / CHILD relationship between the two.

Now it seems you just want to LINK multiple issues of the type defect to a single issue of the type story, which is not the same thing. Refer to the Issue Link endpoint documentation on how to LINK issues together.

And, before you ask "But how do I link more than one defect via a single call to the Issue Link endpoint", Google 'jira rest api link multiple issues' which will lead to JRASERVER-66329.

Have fun on your learning journey

JY January 11, 2023

@Sunny Ape 

in summary, no solution yet. 

Suggest an answer

Log in or Sign up to answer