Block a status transition based on the value of a custom field

Kara Hopkins April 10, 2024

I have asked a similar question before a few years ago but I am still confused and cannot work it out.

I need to block a status transition (Resolved) based on whether a value is present in a custom field.

If 'Deploy sign-off required" = Yes then "Deploy sign-off by" and "Deploy sign-off date" must be populated. If they aren't populated then the transition to 'Resolved' must be blocked.

If 'Deploy sign-off required" is null then the ticket is allowed to be resolved without the sign off by and sign off date fields being populated.

I am attempting to do this by added a workflow condition but I can't work it out:

Screenshot 2024-04-10 at 13.09.35.png

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 10, 2024

Hi Kara,

Just create two Transition to the Resolved status. One that has a condition that the field = Yes and one that the field = No. Then add your validators to the one transition as needed. 

Kara Hopkins April 11, 2024

Thanks but I don't understand how that will work? If I have both then I will always be able to Resolve as regardless of whether I choose Yes or null, the condition will always be met and I will be able to Resolve?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 12, 2024

Help me to understand the sequence. 

The user edits the issue and puts a value in the Deploy sign-off required field at some point. Maybe even at create. 

The issue moves along and gets to a point where the next transition needs to require the additional fields be entered if the above field = Yes. Otherwise if empty or No, then the issue continues down it's happy path. 

Is this correct? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events