Using the JMWE Transition Issue(s) Post-Function, I'm trying to transition only the "Dev Task" sub-task types to the Done status once the Parent ticket moves to the "QA Feature Testing" status.
Any suggestions on a Groovy script to do this? Thanks!
Hi @Kelsey Berry ,
Thanks for reaching out!
Please configure the JMWE Transition Issue(s) Post-Function as shown below
In the Target Issues, please select “issues returned by the following groovy script” and add the code below.
issue.subTaskObjects?.findAll{it.get("issuetype").name in ["Dev Task"]}
The above code will return all the subtasks which are of type "Dev Task".
Save the post function and position it after the Update change history for an issue and store the issue in the database post-function.
With this, whenever you move the parent issue to "QA Feature Testing" status, the Dev Task subtasks will be moved to Done status automatically.
Hope this helps!
BTW I am Appfire, a vendor of JMWE.
Thanks
Reshma
**Edit: I realized that the Groovy expression needed to be under the Target issues section. Now its working as intended. Thanks for your help!
Hi Reshma,
Thanks! When I used your Groovy expression, it mostly worked, but it updated any sub-task to Done, instead of only the Dev Task subtask issue types. This is a screenshot of how I've configured the post-function. Do I need to change something?
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.