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, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events