Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue transition condition is there but not working as expected

Jet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2024

 

I have workflow A and Workflow B in a single project. I want to transition step 2 to step 3 in workflow A only when workflow B is in step 2. Is there a way to achieve this?

I tried to add the condition Update parameters of the Sub-Task Blocking Condition Condition for this transition (Condition to block parent issue transition depending on sub-task status) but workflow A is able to transition to Step 3 even though the workflow is not in step 2. 

Note: Workflow A has Epic; Workflow B has task and Sub task defined

Not sure where I am going wrong. Could anyone help me with this one?

3 answers

1 vote
Trudy Claspill
Community Champion
June 14, 2024

Hello @Jet 

Welcome to the Atlassian community.

That condition will work only for the issue that is the direct parent of subtasks. It will not work to limit the transition of an Epic based on the child issues of the Epic.

There is not a native workflow condition or validation for what you want. It can be done with certain third party apps.

You could also consider using Automation Rules to track the transitions of the child issues, and update a flag/field in the parent Epic that could be used in the Epic workflow in a condition to block the transitions.

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2024

Hi @Jet

If you are looking for an easy way to block the transition of child issues when their parent is in a certain status or status category, please consider Linked Issues Validator, which is a part of 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, epic children, and linked issues.

Btw, I am from Forgappofy, the vendor of the app.

I am leaving a link to the app's documentation if you are interested.

Cheers

0 votes
Ash Yadav
Community Champion
June 14, 2024

Hi @Jet 

 

You're going to want to use either the built-in automation within Jira or the likes of scriptrunner (3rd party plugin).

 

Let's assume workflow A has the following 3 steps: 

To do -> In Progress -> Done

 

And workflow B also has: 

To do -> In Progress -> Done

 

You'll want your automation to trigger on "Issue Transitioned", This will apply to when an issue is transitioned using workflow B. 

 

From there you'll need to specify a condition, we'll use "Related Issues condition" and set it to Epic, followed by an action to transition the issue and specify the status.

 

I'd recommend starting with this for more guidance: https://support.atlassian.com/cloud-automation/docs/create-and-edit-jira-automation-rules/

 

KR, 

Ash

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events