The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Hannes Obweger - JXL for Jira
Atlassian Partner
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-
Community Champion
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
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events