Forums

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

JQL for comparing 2 string fields

Orit Nachshon
Contributor
January 30, 2018

Hi,

I want to compare 2 fields in a simple JQL:

I want to find all issues in a project that the "Summary" field has the same text as "Acceptance Criteria" (custom field).

How can I do it without plugins?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2018

Hi Orit,

simple answer, you can't. There's no way to compare two field values.

Orit Nachshon
Contributor
January 30, 2018

:-( Strange... 

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2018

JQL is not SQL... You can query issues that have the same text as a fixed value but there is nothing like a subquery-concept in JQL. And that is what you need for that kind of comparison.

There are options with plugins, but you asked for a solution without additional apps.

Orit Nachshon
Contributor
January 30, 2018

Thanks.

So I found a workaround - to create a hidden and calculated custom field that will indicate (True / False) if the fields are alike, and use it on the JQL.

What do you think? Any other workarounds you can think of?

Sarah Aubuchon April 7, 2020

@Thomas Schlegel

What Plugin could we use to compare 2 field values?

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events