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

JQL advance search options

Hi team,

I am trying to craft a query that should do the following things, see below for your reference, though struggling to progress/find a solution.

Could you please advise? maybe share a sample? or point me into the right direction?

 

Logic:

 

1.  create a list of jira cases using some basic filtering (all good)

 


project = "some_text"

and summary ~ some_text

and created >= startOfMonth(-1M) and created <= endOfMonth(-1M)

and status = done

order BY created DESC


 

2. for each jira case in the list produced above run a subquery, this is where i got stuck

This is the pseudo code I am trying to write using JQL though not sure if the fields/attributes needed could be used or if they even exist

 


if jira.ticket[created.date] + 24h is <= to jira.ticket.child[resolved.date] then list jira.ticket

run the loop through the list produced till the end of the list


 

any advice would be welcome! 

 

PS: should I consider using API route instead of JQL advance search?

1 answer

1 accepted

3 votes
Answer accepted
Jack Brickey Community Leader Dec 06, 2021

Hi @Oscar Gargallo , welcome to the community. Unfortunately you cannot do this with JQL as there is not support for date compares or >,< operators. Automation provides some of these functions so you might consider using a custom field and setting it to true or false depending on your logic when an issue move to done. Otherwise look to the marketplace for potential add-ons to meet your needs.

thanks, I appreciate the feedback.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Work Management

Lessons from Vilius Zigmantas’ path to Continuous Process Improvement at GeoComply

  “Organizations are made of people who create and follow processes which are constantly changing and are in need to be supported and nurtured… this is the spot where I realized I can br...

1,709 views 9 19
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