Forums

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

How do I restrict a transition on Flagged field

Atta.Khalid
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!
July 15, 2024

I have a workflow which sets field Flagged=Impediment and another which removes it (also Label=Blocked as temporary solution)

Flagged Workflow.png

I want to restrict transitions to only when Flagged is empty string however the Flagged field is not listed in the workflow transition rule editor :( (I am having to use the Label=Blocked)

Restrict on flagged.png

 

I currently have the restriction working on Label=Blocked but the label can be removed by anyone making the restriction useless

 

Transition Blocked.png

 

1 answer

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.
July 15, 2024

Hello @Atta.Khalid 

Do you work in a company or team-managed project?

If you are in a company-mangaed project, then you can switch to the old workflow editor. In the old editor, you can use the 

Regular Expression Check Validator

For regular expression simply choose: false

Or if you want to use conditions, then there is the Value Field condition, again, as a value set: false

If you have more complex logic or want a better validation message, you could use a Jira expression-based validator provided by one of the apps on the marketplace.

I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira app.

The expression you need is as follows:

issue.flagged != true

I hope this is helpful for you, regards!

Suggest an answer

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

Atlassian Community Events