Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,463
Community Members
 
Community Events
177
Community Groups

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

Atlassian Community Events