JQL to get date within 3 months

Narsha Bac
Contributor
August 1, 2023

Hello Team,

I am working on an automation rule where I need to compare two dates. I have a custom field named 'Baseline start date'. If this date is within the next 3 months, I need to transition the issue. 

For example, if I insert the date 06/08/2023 and today is 02/08/2023, I need to compare it with the smart value or a JQL to know if this is within the next 3 months. If today is 02/08/2023 and I insert the date 02/02/2024, it should not transition my issue since February is not within 3 months.

I can do this by a JQL or by comparing the custom field with a smart value.

Any help on this please?

Thanks.

1 answer

1 accepted

2 votes
Answer accepted
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2023

Hi @Narsha Bac

you can use a JQL with relative dates/times. So, in your case you could build a JQL like:

"Baseline start date" > now() and "Baseline start date" < 90d

Would this help?

Cheers,
Matthias.

Narsha Bac
Contributor
August 2, 2023

This works. Thanks a lot!

Cheers.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events