Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

binary operands in JQL

Hi,

did anyone come across binary operands in JQL?

I have field Flag used as binary flag used for store information. Eg. In project A user raised (using transition) issue in project B, and it was done in IN PROGRESS status (flag value = Flag || 1), IN REVIEW status (flag value = Flag || 2). Additionally, there is project C, where user also can raise issue from the above statuses, and flag value is Flag || 4 or Flag || 8.

Then I need to find issues (and save JQL as a filter) with Flag && 10. That means, issues was raised in projects B and C from IN REVIEW status from project A.

1 answer

0 votes

I think you are looking for "logical operators" (AND, OR) on "flag" field values, right?

I think there is no such thing.

You could store each flag in a checkbox type field, but if you have a bunch of flags, then it could explode the number of your fields. Or, you could eventually encode the flags in an "Text" type fields and use different characters to represent the different flags and test them with the "~" operator (text matching)...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.13
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

529 views 19 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you