Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Wanted to implement a IF condition in JIRA validators

Sabyasachi Samal May 17, 2024

Hi,

Want to use below condition in validators but could not find any options. Can you please suggest how to achieve the same. Note: Conditions can be used but the issue is it does not show any error messages to the user.

Transition from "Ready for Dev" --> "In Dev" only IF "Dev Estimation > 0"

2 answers

1 accepted

1 vote
Answer accepted
Floating electron
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.
May 17, 2024

Hi @Sabyasachi Samal 

If your project is a company-managed project, you can use an app providing Jira expression-based validator. There are several options available on the Atlassian marketplace.

We've developed the Jira Expression Validator as part of the free  Workflow Building Blocks for Jira  app. Feel free to give it a try! The Jira expression for your case will be similar to:

issue.customfield_12345 != null && issue.customfield_12345 > 0

You need to change the ID of the field. After "issue." start typing "Dev Estimation", editor will suggest the correct field.

I hope it will help.

Cheers

Sabyasachi Samal May 17, 2024

@Floating electron Thanks a lot. It worked as expected and good part is this is FREE.

Like Floating electron likes this
2 votes
Rik de Valk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2024

Hi @Sabyasachi Samal , 

The default validators in Jira (Service Management) Cloud do not offer this option. Apps such as Jira Misc Workflow Extensions do offer advanced conditions and validators that provide messages to the user. 

Without buying any App, you can implement a workaround, using Automation. You can create a rule that will check AFTER the transition has already occurred, if the issue meets your condition. If not, it will transition the issue back to its previous status and post a comment with explanation. 

Kind regards, Rik  

Sabyasachi Samal May 17, 2024

Hi @Rik de Valk Thanks for your response. Currently I am not looking for a paid app for this. Even though the workaround will work but it will create confusion to the Dev team.

Like Rik de Valk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events