Forums

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

How can I create a condition for a workflow transition based in two custom fields

Samuel Bar
Contributor
June 23, 2020

I would like to create a condition based on the values of two custom fields
example 1: If custom_field_1 = 'Yes' and custom_field_2 is EMPTY
Do not permit the transition
example 2: If custom_field_1 is EMPTY and custom_field_2 is not EMPTY
Do not permit the transition


Thanks,

Samuel Bar

1 answer

1 vote
Oliver Siebenmarck _Polymetis Apps_
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 23, 2020

Hi Samuel,

There's different ways to do this, but the easiest way is to group two "Value Field" conditions. To achieve this, create the custom_field_1 condition first and then in the view where you see all configured conditions listed, click "Add grouped condition" (i.e. the leftmost icon when hovering over your condition). The end result should like somewhat like this:

Bildschirmfoto 2020-06-23 um 19.31.47.png

Of course, if you want to build even more complex conditions, you'll eventually need one of the many apps that support Jira Expressions for conditions. I would recommend Cloud Workflows, because I work for that vendor, but there are other options as well.

In any case, your specific use case should just work without any extra apps. 

Hope that helps,

 Oliver

Samuel Bar
Contributor
June 24, 2020 edited

Hi @Oliver Siebenmarck _Polymetis Apps_ ,

Thanks for your advice

I am following your advice but I do nor see how the "IF" part of the condition can be added
If custom_field_1 = 'Yes' and custom_field_2 is EMPTY
How the user will be notified about the problem?

BR,

Samuel Bar

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events