We have a status in our workflow of "Withdrawn", so I was wondering if there is any way to get the Subtasks of a Story to change to "Withdrawn" when the parent Story is put to that status within post functions or something else? Another detail may be that if the aforementioned is possible, could we also only transition only the Subtasks that are not already marked "Done"?
Thanks for your help!
Hi @Dan Maxwell ,
while this isn's possible in Jira out of the box, there is a huge category of workflow apps on the Atlassian Marketplace adding this kind of functionality (see https://marketplace.atlassian.com/search?category=Workflow), e.g.
While all of the above can help you with your scenario, I have the specific use case at hand for Jira Workflow Toolbox (JWT), since I belong to the vendor: https://apps.decadis.net/display/AUTOMATION/Keep+the+status+of+parents+and+sub-tasks+in+sync
Have fun exploring the world of workflow apps!
Cheers
Thorsten
Hi, Dan.
JSU can solve this without any coding necessary.
To your question: “Another detail may be that if the aforementioned is possible, could we also only transition only the Subtasks that are not already marked “Done”?
You may use the power of JSU’s JQL to solve this:Related issue by JQL:
parent = {issue.key} and status != Done
Check-out JSU’s documentation here:
https://confluence-apps.beecom.ch/display/JSU/JQL+ReferenceIf you don’t have JSU yet, you may download it from here: https://marketplace.atlassian.com/apps/5048/jsu-automation-suite-for-jira-workflows?hosting=cloud&tab=overview
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agree with this answer! JSU will let you do this without tedious coding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since JWT and JSU already chimed in, I can add that, with JMWE, you would be using the "Transition Related Issues" post-function, which is also very simple to configure. And to only transition sub-tasks that are not marked as done, it really depends on what you mean by "marked as done". Is it a particular status? In that case, you just need to make sure there is not transition from "Done" to "Withdrawn". Or you could use conditional execution with this condition:
relatedIssue.get("status").name == "Done"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could also use the jira automation plugin.
Regards
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.