How to use Issue linked and Issue Link Deleted triggers

lenka_salacova January 29, 2025

Hello,

I am trying to build a rule(s) with the following logic:

We have an Issue Link Type created. Outward link: "child of". Inward link: "parent of". (This is not a replacement for the standard Jira hierarchy; it has a different context.)

We have project ABC and tickets in this project hold links "parent of" of tickets from projects DEF1 and DEF2.

The logic should say that anytime there is an unresolved DEF ticket, the parent ABD is in status Stable. Anytime all children from DEF projects are resolved the ABC ticket should go to Stable status.
I was able to build a rule saying that anytime the resolution value changes on any DEF ticket it checks resolution of all the other children and adjust the ABC status accordingly.
I was able to apply similar rule for scenario when a DEF ticket is linked to ABC ticket. But I struggle with a scenario when the DEF ticket is unlinked as I lose the reference of the unlinked ticket.

But maybe I am overcomplicating it. Can you think about a simple and elegant solution for this scenario?


Thanks for your help

Screenshot 2025-01-28 at 16.14.51.png

1 answer

1 vote
Vishal Biyani
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.
January 29, 2025

@lenka_salacova 

if you create another automation rule and use the trigger "when issue link deleted", that should help with the delinking scenario(s).

You will need to rely on smart values

{{issue}} will always refer to the source issue, so if ISSUE-A is blocked by ISSUE-B, this rule will execute on ISSUE-B. To access ISSUE-A, use {{destinationIssue}}, and to access the link type, use {{linkType}} 

Let me know if this helps in your automation rule

Suggest an answer

Log in or Sign up to answer