Hi,
We are using jira cloud.
I think so we have build in workflow condition for this for sub tasks but our hierarchy is
Initiative
MBI, Sub Service
Epic
We would like to check each child issue types to be closed/done before the parent issue is closed
Here we have MBI as parent of an Epic
We need to prevent the MBI from being able to transition to complete unless all of its children are either in done or closed status.
Please anyone can help me with this.
Thanks,
Geethanjali.
Hi Geethanjali ,
If you have ScriptRunner for Jira Cloud installed then you could use a workflow validator to block the transition of the work item when its linked item is not in the done status.
Workflow validators use the Jira Expression framework which is documented here and you can use this documentation to see how to create the expresison you require.
We also have some examples in the dcoumentation here around using child issues, which you can use as a reference guide.
If you need further help creating the expression, then you can raise a support request here and the ScriptRunner support team can help with this.
I hope this helps.
Regards,
Kristian
Surprised to see this still open.
Here is a simple script that works if you have script runner app:
Steps to implement:
Go to the workflow status
Validators --> Add Validator --> Simple scripted validator (by scriptrunner) and use the below
..................................................
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Geethanjali S J @Frederik Hellstern
There is no out-of-the-box validator that can do this, but it can be accomplished using Jira expression-based validators provided by some apps. There are several options available on the Atlassian marketplace.
I am from Forgappify, and we developed the Linked Issues Validator available as part of the Workflow Building Blocks for Jira app. With a wizard-like UI, you can select options that represent your case. You can choose relations from: sub-tasks, parent issues, stories and children (includes all types of descendant issues), and linked issues. Additionally, you can filter relations by issue types and select criteria based on status category and status.
I would appreciate it if you could give it a try.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try out Sub-Task Blocking Condition (definition: Condition to block parent issue transition depending on sub-task status)
More other conditions can be found on Configure advanced issue workflows.
If you want the other way (block child issue to transition depends on parent's status), then you can use Parent Status Validator. Reference: Configure advanced issue workflows Use workflow validators for company-managed projects
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually that is not working for our requirement.
Our hierarchy is
Portfolio level - initiative next
MBI, Sub Service
Epic
Here MBI is parent we are creating Epic under MBI by giving parent link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please suggest an answer to my requirement
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.