How to find Ideas with Target Date dangerously approaching? :-)
Asked by Simone Longoni:

Hi there!

I have a Date field "Target Date" that represents when an Idea should hit the market.

I would like to have a Jira JQL filter that detects Ideas that are about to approach their Target Date as I need to prioritize actions on them (I plan to have subscription on this filter...).

I was expecting to write a query on such Date field in the regular Jira way... something like

targetDate \>= -30d

... but "\<", "\>", etc operators do not look supported.

Am I missing something?

Any suggested alternative to address to the above mentioned need?


Answers:
author: Chris Timms
body: Hello [@Simone Longoni](/t5/user/viewprofilepage/user-id/4721502) ,

The date field structure JPD uses isn't well supported in the rest of Jira yet and I have found JQL has quite a bit of difficulty with it.

But, you can do what you are looking for in JPD directly!

* Set up a new view
* Add a new filter for Target Date
  * **Date Starts within the next months**
  * Enter a number for how far you want to look. e.g. entering 3 today will return all issues with a target date starting in January

![q.png](https://community.atlassian.com/t5/image/serverpage/image-id/288210i9E05D015C49E12EC/image-size/large?v=v2&px=999 "q.png")

This will show you all the ideas in your JPD project that start in the next three months. You can add additional filters (for example, if you want to only look at items that are in your backlog and not in flight).

Hope that helps!

Regards,

- C

comments: author: Simone Longoni
body: Thanks [@Chris Timms](/t5/user/viewprofilepage/user-id/1260719)!

I am unfortunately looking for a way to send push notifications by email based on filter match.

Still, having a JPD view could enable a pull way to keep an eye on what is about to "expire".

Cheers,

Simone


author: Tanguy Crusson
body: Hi, you can use formatting on the date field to highlight the ideas for which a date is coming soon or overdue, then use that fields in your views:![Screenshot 2023-10-26 at 11.07.08.png](https://community.atlassian.com/t5/image/serverpage/image-id/288359iBFA37E5A5CAF0D29/image-size/large?v=v2&px=999 "Screenshot 2023-10-26 at 11.07.08.png")


author: Bill Sheboy
body: Hi [@Simone Longoni](/t5/user/viewprofilepage/user-id/4721502)

You are correct, and...

After some digging and experimenting I found that the JPD team appears to have created a new "date range format", which is neither a date field nor JSON compatible. Which is probably one reason it does not work with JQL or directly with automation rules. (Although that second one can be hacked a bit using text functions and advanced edits...)

The format is plain text, like this {"start":"2023-11-13","end":"2023-12-13"}

I recommend regularly searching this group for "date field" to learn if the team has made any changes / improvements in using this field. Otherwise, the suggestion Chris made seems to help with your Target Date checks.

Kind regards,  
Bill

comments: author: Bill Sheboy
body: Just a follow-up...

Based on your other responses that you want to do a "push" message, I believe you could using an automation rule:

* gather ideas with a non-empty date field using a lookup issues action and JQL
* parse the field to get the date value and perform a comparison with smart value, list filtering to your target {{now.minusDays(30).jiraDate}}
* and report out the results in a "push", such as email or message


Tags: date

jql

operators