Validate if Parent has Childs on Jira Cloud Automation

Jesus Octavio Gutierrez Villegas June 17, 2024

Hello!

First of all, thanks for taking the time to read and answer!

I was wondering if there is any validation to check if the Parent has childs or not? so my rule can continue... or not.

Kind regards

1 answer

0 votes
Bill Sheboy
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.
June 17, 2024

Hi @Jesus Octavio Gutierrez Villegas 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

The answer depends on which issue types (and children) you are asking about...

For a standard issue type (e.g., Story, Task, or Bug) and you want to check if there are any subtasks, you may check that smart value: {{issue.subtasks}}

For other types (e.g., and Epic and child Story, Task, or Bug) you could use either a related issues, JQL condition to find any issues with a parent field equal to the issue key, or use a Lookup Issues action with the same JQL and check the result count: {{lookupIssues.size|0}}  This technique will also work for the subtasks case.

 

How you solve this may depend upon what you want to do next.  If you just need to know if there are "child" issues, the above will work.  If you need to take action on the child issues, the specifics will determine which ways are better / worse to help.

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events