Forums

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

Transition Parent if subtasks of a particular Type are Closed

Hemanshu Sood
Contributor
September 11, 2018

Hi All,

 

I am looking for a scriplet to put in the workflow of a subtask :

If all subtasks of Type X are Closed then parent should be moved to next stage. I am putting this condition in the workflow of Subtask of Type X, using the below condition, but it is not working:

issue.parentObject.subTaskObjects.findAll{it.issueTypeObject.name ="XXX"}.each{it.resolutionObject.name == "Closed"} 

The parent transition occurs even if I close a single subtask of Type XXX, while I want this check to be performed for all subtasks of Type XXX.

 

Please assist

1 answer

0 votes
Hemanshu Sood
Contributor
September 12, 2018

Hi All,

 

I am looking for a scriplet to put in the workflow of a subtask :

If all subtasks of Type X are Closed then parent should be moved to next stage. I am putting this condition in the workflow of Subtask of Type X, using the below condition, but it is not working:

issue.parentObject.subTaskObjects.findAll{it.issueTypeObject.name ="XXX"}.each{it.resolutionObject.name == "Closed"} 

The parent transition occurs even if I close a single subtask of Type XXX, while I want this check to be performed for all subtasks of Type XXX.

 

Please assist

Suggest an answer

Log in or Sign up to answer