The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Maciej Dudziak _Forgappify_
Atlassian Partner
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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events