Forums

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

SET CURRENT DATE AUTOMATION

Carolina Fumarola June 13, 2023

Hello everyone!

I need to set in a query that when a certain story is created, the "Due date" field is always populated with the 20th day of the current month.
I found this query that returns the 20th of November. I would like JIRA to understand which month we are in and update accordingly.

Can you help me?

{{issue.created.withDayOfMonth(20).withMonth(11)}}

2 answers

1 vote
Laurie Sciutti
Community Champion
June 13, 2023

Hi @Carolina Fumarola :  this should work:

{{now.withDayOfMonth(20)}}
0 votes
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.
June 13, 2023

Hi @Carolina Fumarola -- Welcome to the Atlassian Community!

What do you want the rule to do when the current date is...

  • before the 20th of the month
  • equal to the 20th of the month
  • after the 20th of the month

As you appear to want to set the Due Date field, setting the date in the past (or without enough lead time), might cause unintended consequences.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events