Forums

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

Delete links of a specific relation to a specific project

Johannes Fünger February 19, 2025

Hi there,

may you can help:

We have issue in a project A  being linked via link type "relates to" to issue of different projects (B,C), If the status of the issue in A changes I would like to delete the "relates to" link to an issue in project B and keep the linbk to the issue inm project C.

How could I implement it. Any help is highly appreciated.

Kind Regards

 

Johannes

3 answers

2 accepted

0 votes
Answer accepted
Richard Cho - ServiceRocket
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.
February 19, 2025

It's not a super elegant solution because you're limited to what automation allows you to do but I was able to get it somewhat working with this: link

For this to work properly, you will need to import this as a global automation and update the project references in the condition and JQL lookup as necessary.

Some possible caveats depending on your use case:

  • This automation rule removes all 'relates to' links to project B - not sure if this will be an issue or not.
0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
February 19, 2025

Hi @Johannes Fünger ,

you need a custom post function to do that. Do you have ScriptRunner app?

Fabio

Johannes Fünger February 24, 2025

Thank you Fabio

0 votes
Ari Raatikainen
Contributor
March 27, 2025

Hi,

I am working in DC environment on similar case where the customer need is to remove only specified "relates to" links that linked issue summary contains a specific text. Deleting all "relates to" is not option.

I have not figured out how to achieve this, so all new ideas are welcome.

Suggest an answer

Log in or Sign up to answer