Requirement:
Link multiple issues to a single issue using api call from custom plugin.
Workaround:
iterating list of ids and passing one id at a time for linking.
http://localhost:8080/rest/api/2/issueLink - api (POST)
Body :
Hi Reeta,
I can confirm that if you use ScriptRunner for Jira Cloud you could use an Escalation service to help achieve this requirement.
The escalation service would find the issues to link and then run the script to link to that issue on each issue returned in the query.
I can confirm the blog here explains in more detail how an Escalation Service works.
We also have an example that shows how to link to an issue here that can help achieve your requirement.
I hope this information helps.
Regards,
Kristian
Hello @Reeta Kumari ,
Welcome to the community!
Unfortunately, it is a limitation of this rest API call.
We have an FR :
https://jira.atlassian.com/browse/JRASERVER-66329
You can create a script to perform the iterative action using this API call that serves your purpose or can create an automation rule having in Branch query JQL query having lookup issue as per your use and based on that add a Send web request / or perform link issue action.
I have created a basic one for my test instance:
Try exploring this out.
Have a great day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.