Forums

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

Comparison of Number Validation

Santhosh Raj
Contributor
January 13, 2025

We are trying to find a Number field Comparison in Jira.
For Eg: 

Budget:

Total Value:

We wanted users to update it like Budet should not be above than the Total Value 
Budget >= Total .

Is there any way that we can do this block when creating an Issue

3 answers

1 vote
Jack Brickey
Community Champion
January 13, 2025

There isn't anything OOTB that could prevent a custom field value from exceeding another custom field value. However, you could use Automation to notify when that occurs.

trigger: field change

condition: budget>=total

action: notify via email, slack, comment, etc

Santhosh Raj
Contributor
January 13, 2025

But the automation will only start working after the issue is created, right?
I want to block it during the creation itself.

Also what are the other ways we can achieve it. 
Can we do it by Plugin or by any other api things

@Jack Brickey 

Jack Brickey
Community Champion
January 13, 2025

Correct. Automation is after the fact requiring the user to correct the situation. You can check the Marketplace for options. I believe Scriptrunner Behaviors could do this but I have not tried myself.

 

Like John Funk likes this
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.
February 12, 2025

Hi @Santhosh Raj 

I’m from Forgappify and wanted to share that we’ve been working on a more flexible way to build conditions using Jira Expressions. This led to the Ultimate Validator (now in Beta), which is part of the Workflow Building Blocks for Jira app. It lets you use most of the power of Jira Expressions—but without writing code. Instead, you build conditions through a simple UI. 

With it, the comparison of fields is quite straightforward. Here’s how the configuration for your case would look:

number_fields_comparison.png

I hope it will help,

Cheers

0 votes
Prosper Agwegiokhe January 13, 2025

Hi Ismael,

Welcome to the Atlassian Community!

I’m a Support Engineer at Appfire, here to assist you.

If you’re open to plugin suggestions for simplifying your process, I recommend trying JMWE for Jira Cloud.

With this, you can add a validator when the issue is created and build your own validator to compare both fields. See the sample images below.
Screenshot 2025-01-13 093634.pngScreenshot 2025-01-13 094409.png

For more details, you can check out our complete documentation here. If you have any further questions, don’t hesitate to reach out to our support team—we’re always happy to help!

Best regards,
Prosper

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events