Forums

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

How to check the type of the linked issue

Assad Rajab May 26, 2025

Hi, i am working on automation process.
The point i can't solve is how to check if one of the linked issues have the type of "xy" (can be a task, sub-task, etc...)

2 answers

0 votes
Deivid Araujo
Contributor
May 26, 2025

Hi @Assad Rajab !

 

You can do this using the following automation blocks:

2.png1.png

Assad Rajab May 26, 2025

Thank you, However i missformatted my question, i want to do something if no ticket of issue type XY is present in the linked items

Assad Rajab May 27, 2025

@Deivid Araujo Any thoughts on this?

Deivid Araujo
Contributor
May 27, 2025

In that case, you can just change the "Condition" field from "Is one of" to "Is not one of".

 

You need to make changes on issue that triggered the automation or the linked issues?

0 votes
Dick
Community Champion
May 26, 2025

Hi @Assad Rajab 

You can use a conditional expression for this:

If issuetype in (task, sub-task)

The issues that pass this condition can have a different automation path, which is indicated to you by the vertical line that's visible to the right of the main line between automation parts.

Kind regards,
Dick

Assad Rajab May 27, 2025

Hi, @Dick Thank you for your reply. 
as i mentioned above, i have missformatted my question. the final goal is to do something if no task of type (XY) found. Is there any workarounds to do this? I have thought about creating something similer to:

- create variable
- Iterate linked items
-- if item type is XY, change the variable value to be true
- check for the variable
-- if true
--- do something
-- else
--- do something else

However, i am not sure if this is how the variables work in the Automation and if there is any simpler Approach. 

Dick
Community Champion
May 28, 2025

Hi @Assad Rajab 

It's as simple as to include the not operator in your condition after finding a set of issues to begin with using the lookupissues  function. 

Kind regards,
Dick

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events