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
Hello @Hemanshu Sood
This is a built-in script available in the post-function for the Script runner plugin, thus you can use it as it is i..e out of the box
Hi @Tarun Sapra
this resolution is only valid when all subtasks( of all types) are resolved. My question is : what if we want to transition parent only when subtasks of a particular type are resolved only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For this you would need to write code but can you please explain why do you have sub-tasks of "different types" what's the use-case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tarun Sapra
Use Case:
2 Kinds of subtasks X and Y are associated with a parent ticket.
There are 2 subtasks for type X and 2 for type Y. When I close only Y type of subtasks , parent should move a status further. I am using this condition to check ( fast track transition) , but it does not work:
issue.parentObject.subTaskObjects.findAll{it.issueTypeObject.name ="Y"}.each{it.resolutionObject.name == "Closed"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.