Hello,
unfortunately I am not familiar with scripting. So I would hope that this matter can be solved otherwise. However we are using Jira Miscellaneous Workflow Extension and would like to do the following:
How can this be done? I would be glad for any help or hints.
Cheers,
Simon
Hi Simon,
unfortunately, you need a little scripting for that, as this too specific of a requirement to exist as a point-and-click solution.
You didn't specify whether you were on Jira Server or Cloud. I assumed the former.
You need to create a Transition Parent Issue post-function on the "Done" (or Close, or whatever) transition of the subtask workflow to trigger the "Waiting for Review" _transition_ (or whatever the name of the transition is that takes the parent issue to the "Waiting for Review" status). Then, on that post-function, you need to use a Conditional Execution script as follows:
(parentIssue.get("subtasks").any{it.get("summary") == "Review" && it.getAsString("status") != "Done"} //there is a subtask named "Review" and its status is not "Done"
&& !parentIssue.get("subtasks").any{it.get("summary") != "Review" && it.getAsString("status") != "Done"})
Note that you need to move the post-function to the bottom of the list.
Hi David,
thank you very much for the prompt response. And of course for your solution.
The script works as intended and solved my issue.
Great work.
Cheers,
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to solve this issue by using the following script as a condition
Collection subTasks = issue.getSubTaskObjects()
def transition = false;
def condition1 = false;
def condition2 = false;
subTasks.each{subtask ->
if(subtask.get("status") == "done" && subtask.get("summary")!="Review")
{ condition1 = true; };
if(subtask.get("status") != "done" && subtask.get("summary")=="Review")
{ condition2 = true; };
};
if (condition1 == true && condition2 == true)
{ transition = true; };
return transition
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.