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?
Eventually I did it with automation. Everything turned out to be much, much easier.
This video helped me: https://www.youtube.com/watch?v=itZtQXGCSoM&ab_channel=AutomationforJira
Solution:
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...
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.