Link Type Automation Won't Trigger
Asked by Brad Hebert:

I've attempted to setup an automation to add a label to an issue when there is a specific link-type is present. No matter how I configure the automation, it never seems to trigger or identify any issue as an eligible issue for the automation.  

Just looking for any pointers that can be offered here as the "If Linked Issues Present: Link Type" does not seem to catch any tickets created with the link type. I've also created a version of this automation that should trigger based on the issue being updated and even in that configuration an issue linked with the desired link-type still does not end up being labelled or triggering the automation rule.  

![RCAJIRA1.PNG](/t5/image/serverpage/image-id/343525iAEAE882D759917B2/image-size/large?v=v2&px=999 "RCAJIRA1.PNG")![RCAJIRA2.PNG](/t5/image/serverpage/image-id/343526i1D3C06253BA33ABE/image-size/large?v=v2&px=999 "RCAJIRA2.PNG")![RCAJIRA3.PNG](/t5/image/serverpage/image-id/343527i624CB251F72B6F59/image-size/large?v=v2&px=999 "RCAJIRA3.PNG")


Answers:
author: Bill Sheboy
body: Hi [@Brad Hebert](/t5/user/viewprofilepage/user-id/5574392) -- Welcome to the Atlassian Community!

There are two possible causes for this symptom...

First, the Issue Created trigger can fire so quickly that some data is not yet available to the rule. As linking happens after issue creation, it is likely the data is missing when that condition is attempted by the rule. The "fix" for this is to **always add the Re-fetch Issue action after the Issue Created trigger**. This will slow the rule down a bit and reload the information before the rule proceeds.

Second, most issue links are directional, such as "blocks" and "is blocked by". If your link type has direction and the wrong one is selected, the condition would never pass. Please check your links and update the condition, as needed.

Kind regards,  
Bill


author: Darryl Lee
body: Ohey [@Brad Hebert](/t5/user/viewprofilepage/user-id/5574392) and [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) - funny, I'm working on an automation and running into the same issue.

I did some testing and I've added the following to the audit log before my conditional check for "Linked issues present (Types: All link types)".

![Screenshot 2024-09-20 at 2.52.46?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/348481i9FFE9D11C346F13E/image-dimensions/314x347?v=v2 "Screenshot 2024-09-20 at 2.52.46?PM.png")

Lo and behold, logs show:
> links: SUS-4860

But the subsequent "CONDITION FOUND LINK" message never shows up:

![Screenshot 2024-09-20 at 2.54.12?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/348482iB91843507B623474/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 at 2.54.12?PM.png")

This feels like a bug. I guess we could work around it by using a smart value comparison like checking if this is true:

```
{{issue.issueLinks.isEmpty}}
```

But ugh. Why have a condition if it doesn't work? I'm gonna file a ticket.

comments: author: Darryl Lee
body: Ugh, I figured it out, and it's annoying because it's right there:  
![related.png](https://community.atlassian.com/t5/image/serverpage/image-id/348483iA5C0761D318B51F8/image-size/large?v=v2&px=999 "related.png")

*Sigh.* Welp, thanks for helping me rubber duck my problem. I don't know if it helps with your issue [@Brad Hebert](/t5/user/viewprofilepage/user-id/5574392) .


Tags: cloud

jira-cloud