Forums

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

JIRAs between 5000 trips and 20000 trips

Mauricio Caceres
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2023

Is there a way to create a JQL query that will show me all the JIRAs that have between 5,000 and 20,000 trips?

I am using this JQL query, but it does not show me the JIRA:

  1. project = DACT AND (Country ~ Mexico OR Country ~ Colombia OR Country ~ "Dominican Republic" OR Country ~ Peru OR Country ~ Guatemala OR Country ~ Panama OR Country ~ "El Salvador" OR Country ~ Ecuador OR Country ~ Paraguay OR Country ~ Chile OR Country ~ "Puerto Rico" OR Country ~ Argentina OR Country ~ Uruguay OR Country ~ Bolivia OR Country ~ Paraguai OR Country ~ Honduras OR Country ~ Jamaica) AND NOT Country ~ "Costa Rica" AND NOT Country ~ Brazil AND ("User Trips" > 20001 AND "User Trips" < 30000)

3 answers

0 votes
Hamza Yakub
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2024

opay

0 votes
Mauricio Caceres
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2023

Thanks a lot @Mark Segall 

Yes, is a numeric field. When i run the query, JIRA show me a notification with the mention that the reference in not supported by JIRA

  • The operator '>' is not supported by the 'User Trips' field.
  • The operator '<=' is not supported by the 'User Trips' field.

Could there be another way to do the query?

 

image.png

Mark Segall
Community Champion
August 2, 2023

You may want to double check the field type.  That field type should support the greater/less than operator if it is configured as a numeric field.  If it supports '~' then it means the field is a short text field and you won't be able to execute that query.

0 votes
Mark Segall
Community Champion
August 2, 2023

Hi @Mauricio Caceres and welcome to the community!

Assuming your User Trips field is a numeric field, your existing query could be updated to this:

project = DACT AND (Country ~ Mexico OR Country ~ Colombia OR Country ~ "Dominican Republic" OR Country ~ Peru OR Country ~ Guatemala OR Country ~ Panama OR Country ~ "El Salvador" OR Country ~ Ecuador OR Country ~ Paraguay OR Country ~ Chile OR Country ~ "Puerto Rico" OR Country ~ Argentina OR Country ~ Uruguay OR Country ~ Bolivia OR Country ~ Paraguai OR Country ~ Honduras OR Country ~ Jamaica) AND NOT Country ~ "Costa Rica" AND NOT Country ~ Brazil AND ("User Trips" > 5000 AND "User Trips" <= 20000)

Suggest an answer

Log in or Sign up to answer