Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to create a filter for that month

Deborah Wong February 5, 2025 edited

Hello, 

Looking for guidance on how to create a filter that will look for issues for the current month through an automation that would create a new filter each month.

 

Meaning if it runs in January, the filter would look for tickets explicitly created :

created >= 2025-01-01 AND created < 2025-02-01.

The automation is currently set up below, which is not what we want because the filter needs to look specifically for the month it ran and change each month it runs. If I look at the filter today 2/5 that was created in January, it would show results for this month because of the part "createdDate >= startOfMonth()"
How do we do this in the automation?



Screenshot 2025-02-10 at 10.06.09 AM.png

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2025

Hi @Deborah Wong -- Welcome to the Atlassian Community!

You are correct that this expression is the cause of what you are observing:

createdDate >= startOfMonth()

Instead you would use {{now}} and the startOfMonth() and endOfMonth() functions, formatting the results to work with JQL.  For example:

     createdDate >= {{now.startOfMonth.jiraDate}}
AND createdDate < {{now.endOfMonth.jiraDate}}

 

Please note well: I recommend not running this rule within 24 hours of the first / last days of the month or time zone impacts could cause problems with the dates selected.  Alternatively, the time zone functions could be used to force {{now}} to your own location before using the start / end functions.

 

Kind regards,
Bill

Deborah Wong February 6, 2025 edited

Yes that worked!!! Thank you!!

 

Pasting in final results in case anyone needs it.
Filter created now explicitly searches for that month

Screenshot 2025-02-06 at 3.02.48 PM.png Screenshot 2025-02-10 at 10.08.58 AM.png

0 votes
Trudy Claspill
Community Champion
February 5, 2025

Hello @Deborah Wong 

Welcome to the Atlassian community.

Can you tell us more about your use case?

Is the purpose of this rule to get the output of the filter on a schedule, or to create the filter?

What is the purpose of the Send Web Request action?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events