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

JQL query on "target start" or "target end"

How do we create a query to return target dates outside of "now"?

The current query I have is "target end" <now() and status != done

But I want to be able to send a notification outside of the actual due date, and send it 3-5 days before the due date.

1 answer

1 accepted

0 votes
Answer accepted
Sam Nadarajan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2022

Hello @Karl Jackson and welcome to the Community!

There's multiple date functions that you can use, such as startOfDay(), endOfDay(), startOfMonth(), endOfMonth(), startOfWeek(), endOfWeek(), and more are available here.

If you want to query for issues that are 3-5 days before the due date, you could do something like:

  • due > startOfDay(-5) and due <= endOfDay(-3)
  • due > -5d and due <= -3d

The "-" goes back in time, so -3d is 3 days ago. 

Hope this helps

thanks, it got me closer given I need to use "target end" this is what ultimately got me there

"target end" > startOfDay(-5) and "target end" <= endOfDay() OR "target end" < -5d and status != done

Sam Nadarajan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 04, 2022

Awesome! If you wouldn't mind accepting this answer so that others can benefit from it in the future that would be great!

For your query, do you need to have parantheses around the last clause:

 

"target end" > startOfDay(-5) and "target end" <= endOfDay() OR ("target end" < -5d and status != done)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events