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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,112
Community Members
 
Community Events
176
Community Groups

How to compare two custom fields using JQL function

I am looking to compare 2 customfields of same datatype. Any help on this approach

2 answers

1 vote
Andy Heinzer Atlassian Team Nov 21, 2017

Natively within Jira there is not a way to do this.   However you might be able to leverage a plugin in Jira in order to search like this. 

I have found a few other threads that appear to indicate that SQL for Jira might be able to be used in this manner.

And another thread that indicates you might be able to use Scriptrunner in order to make a comparison like this.

Thanks for your suggestion Andrew.

I am looking for comparison using script runner. Also I would like to know what classes needs to be extended for this?

Using Adaptavist's ScriptRunner, you can do this in JQL:

issueFunction in expression("","field1 > field2")

Suggest an answer

Log in or Sign up to answer