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

Using comparison JQL between two fields

yirang Im November 13, 2023

Hi, Sir.

I want to find issues by using comparison operators.

The (custom) fields are both numbers, so my JQL is basically like "A(field)" > "B(field)"

but it doesn't work.

It only works when comparing two things between one of the fields and a number, for example "A(field)"<1000.

what should I put more to make it work?  here "A(field)" > "B(field)"

Thank you for your support!

 

 

2 answers

1 accepted

1 vote
Answer accepted
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 14, 2023

Hi @yirang Im

this isn't possible in plain JQL. What you could do is to use Jira Automation to calculate 

"A(field)" > "B(field)"

for your issues and write the result into a custom field, and then use the custom field in your JQL query.

Hope this helps,

Best,

Hannes

yirang Im November 14, 2023

Thank you @Hannes Obweger - JXL for Jira 

It was helpful!

Like Marc - Devoteam likes this
0 votes
Marc - Devoteam
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.
November 14, 2023

Hi @yirang Im 

There is no such option in JQL, to compare fields.

yirang Im November 14, 2023

Thank you! 

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events