How to block an issue from transitioning if there are incomplete child issues?
Asked by Frank Cecere:

As the title says, I want to stop a user from transitioning an issue to the Done column unless the child issues underneath it are incomplete. How can I do this?


Answers:
author: Rilwan Ahmed
body: Hi [@Frank Cecere](/t5/user/viewprofilepage/user-id/4987399) ,

If you are in company managed project, then

Go to your **Project settings** --\> **Workflows**

See what workflow is mapped to the required Issue type and click on **Edit** icon  

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/206406i6952D211D5A8F81C/image-dimensions/328x112?v=v2 "image.png")

Click in "Diagram" mode for better view of the workflow.

Click on required transition (example: Open to Close), go to the **conditions** tab on the right pop up window.  

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/206407iFD3F4C6C9EC985C0/image-dimensions/223x120?v=v2 "image.png")

Click Add **Condition** -\> **Sub-Task Blocking** Condition --\> Click **Add** .  
Select the required status that a sub task has to be, so that parent ticket can be transitioned --\> Click **Add**.

**Publish workflow**.

**Please note:** of you are in Team managed project, then this doesnot apply there. It has only few rules that can be added to transitions.

<https://support.atlassian.com/jira-software-cloud/docs/available-workflow-rules-in-team-managed-projects/>

If you have any issues, please share the project type and the related workflow screenshots. Will assist you.

comments: author: Frank Cecere
body: In project settings, I don't even see workflows. All I see is Details, Access, Notifications, Automation, Issue Types and Apps. I have to go into the Issue Types and then select the default "Tasks" which is what our parent issue type is called. In there I can select edit workflow but my workflow edit doesn't look like yours at all. Similar but not the same. At the top of the editing workflow I have To-Do-Status, In Progress Status, Done status, Transition, and Rule. No condition.


author: Frank Cecere
body: Oh I see, I am in a team-managed project and I need to be company. Thanks a lot for your help!


author: Janek Looschen
body: Hey [@Rilwan Ahmed](/t5/user/viewprofilepage/user-id/716861) ,  

The solution you posted works perfectly fine with Sub Tasks. However in our Jira Project we utilize only Linked issues. For that the solution you ve posted does not work unfortunately.  

Do you have any idea how i could achieve the same results with Linked issues? Ive already tried an Automation but it im having trouble sorting out what is a child and what is a parent.  

Thanks   

Janek


author: Rilwan Ahmed
body: Hi [@Janek Looschen](/t5/user/viewprofilepage/user-id/5205308) ,

This is not possible in native jira. There was a suggestion request long time back and Atlassian closed with resolution "Won't Fix".  
<https://jira.atlassian.com/browse/JRACLOUD-1383>

Please check Atlassian marketplace for any add-ons which can help you  
Example: [Jira Workflow Toolbox](https://marketplace.atlassian.com/apps/29496/jira-workflow-toolbox?hosting=cloud&tab=overview)


author: Maciej Dudziak _Forgappify_
body: In Jira, there are different concepts like: linked issues (e.g. connected with "is blocked by" link), epic's stories (children issues), sub-tasks (issues with the sub-task type that are lower in issues hierarchy), and the parent issue.

**Sub-Task Blocking** Condition works only for sub-tasks case.

Therefore, we have created Linked Issues Validator / Condition available as part of the [Workflow Building Blocks for Jira](https://marketplace.atlassian.com/apps/1233642/workflow-building-blocks-for-jira?hosting=cloud&tab=overview) free app, it covers all 4 cases. With a wizard-like UI, you can select options that represent your case. You can choose relations from: sub-tasks, parent issues, epic children, and linked issues. Additionally, you can filter relations by issue types and select criteria based on status category and status.

I hope it would help anybody


author: Pramodh M
body: Hi [@Frank Cecere](/t5/user/viewprofilepage/user-id/4987399)

For the workflow that is associated with the parent issue type you will have to add the condition "Sub-task blocking Condition" and choose the Sub-task status and save the workflow to be prior moved to that respective status in sub-task for parent to have next transition appear on the screen.

Hope this helps!!

Thanks,

Pramodh

comments: author: Frank Cecere
body: Hi [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

I am still confused about how to do all this, could you give me a step-by-step tutorial? I am very new to the software.


author: Frank Cecere
body: I am in the workflow for the "Task" issue type but I don't see any condition in that workflow.


author: Frank Cecere
body: I am in the new issue view if that helps.


Tags: cloud