Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is there combined smart values as {{issue.parent.subtask.status}}


Hello everyone
I try to create an automation rule that will be executed from sub-tasks and linked issues of parent task and it will be check if parent issue has all sub-tasks in Done status and linked issues in Closed status and if yes, then move parent task to Resolve status. Is it possible to create such rule with automation?
Now I'm triyng to refer to sub-tasks of parent issue through the sub-task that was moved to Done status to check their statuses and I'm trying to use something like {{issue.parent.subtask.status}}, but it's not working. Maybe there is some other way to achive my goal?

2 answers

1 accepted

Eventually I did it with automation. Everything turned out to be much, much easier.
This video helped me:


 image (51).pngimage (52).png

2 votes

Hi @Viktoria Boiko 

First thing, I am using Jira Cloud, not the Server/Data Center version, and so my suggestion is based on the documentation.

Unfortunately, Server/Data Center does not have the Lookup Issues action in rules, which would make this use case easy.

As a possible work-around, you could try using JQL and the bulk-handling feature of Server/Data Center rules with a branch to check the condition.  For example...

  • Create some JQL for the opposite of your conditions, looking for any sibling subtasks (of the trigger issue) which are not Done.  And create another JQL for any linked issues of the trigger subtask which are not Closed.  Let's call these query #1 and #2, respectively.
  • Now combine those with an OR operator: (query #1) OR (query #2)
  • Use that in your branch with bulk handling, and add an advanced compare condition
    • first value: {{issues.size|0}}
    • condition: equals
    • second value: 0
  • if that condition passed, there were no issues preventing moving the parent to done


Kind regards,

Hello Bil, this is a brilliant idea but I see now that "lookup" function is neccesary here.
First of all, I modified "(query #1) OR (query #2)" JQL with adding key of the parent issue here, because this issue have to match JQL condition to execute.
Second, сonsidering the previous modification I changed {{issues.size}} equals to 1, not 0 because now we will get parent issue in our search anyway.
And the next issue I faced is that {{issues.size}} (and {{lookupissues.size}} too) always return 1 no matter how much issues in the JQL results I have - this is the main problem to achive the goal now.



But your idea is good anyway, maybe I can achive this the same way but with Scriptrunner. I will try and let you know how it turns out. Thank you.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events