Forums

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

Link automatically 3 issues with a post-function

Camille Lecerf
Contributor
April 29, 2020

Hi,

 

Here is my use case:

 

Issue A is linked to issue B with "mother of" link

A > B

I create issue C as "daughter of" issue A

A > C

Could I automatically link B and C as "related to" with a post-function on the Create transition ? And through an Edit action ?

B <--> C

 

I have ScriptRunner, if needed.

 

Thank you for your help,

 

Regards,

 

Camille

 

 

1 answer

1 vote
Andre Serrano
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.
May 6, 2020

Im certain you can Camille,

The first bit of your script, you will have to look at the parent ticket and find all tickets that are linked with that one. Once you get that back, probably in a list form, the other bit of the script will be to create a link between the parent ticket and all tickets resulted from that list.

I Have a look at the Adaptavist Library website.

https://library.adaptavist.com/


Its a website with plenty of groovy scripts you can use in your ScriptRunner. I'm convinced you will be able to find a script that would help you in your journey.

This one for example, might help: https://library.adaptavist.com/entity/add-or-update-the-issue-link-for-an-issue-in-jira

Suggest an answer

Log in or Sign up to answer