Missed Team ’24? Catch up on announcements here.

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

Automation: Create a ticket on Monday where Friday is the first day of the month

Nangi Namaj December 5, 2023

Is there a way to setup a job in Jira automation so that every Monday it checks if the Friday of that week is the first Friday of the month that the Friday falls on? If so, the automation will create a ticket. I know how to have it setup a cron job to check on Monday and create a ticket, but I'm not sure how to have it check if the Friday of that week is the first Friday of that month.

Example

1. Monday might be 11/27, but the Friday is 12/1 so it would be the first Friday of the month that Friday falls on, but the script needs to check on Monday because that's the day the ticket will be created, or Monday might be 01/01 and Friday is 01/05, etc..

 

Thanks for any guidance.

 

1 answer

0 votes
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2024

Hi @Nangi Namaj,

Compare two smart values:

  1. {{now.plusDays(4).jiraDate}}, that is Friday if the rule runs on Mondays (Monday + 4 days = Friday),
  2. {{now.plusMonths(1).startOfMonth.jiraDate}}, the first day of the next month.

Screenshot 2024-03-04 at 13.15.28.png

If these two values are equal, then the next Friday is the first day of month.

Cheers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events