The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Smart Values - Start and Due Dates

Alina Sysak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2023

I am trying to configure reoccuring tasks to start on last day of a quarter and configure the due date to be one month later. ie - start date Jun 30, due date July 31.  I can get the start date to configure with this 

 {{now.withMonthOfYear(now.format("Q").asNumber.multiply(3)).endOfMonth}}

however how do i configure the due date to be the following month end? If I add 4 to the above it looks to skip a month. and goes to Aug, not July. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Trudy P Claspill
Community Champion
May 3, 2023

Hello @Alina Sysak 

Welcome to the Atlassian community.

You are getting August instead of July when you substitute "4" for "3" in the above because we are in the second quarter and 2 * 4 = 8 = August.

I recommend you use the .plusMonths(1) function instead to set the Due Date one month later than the Start Date.

{{now.withMonthOfYear(now.format("Q").asNumber.multiply(3)).endOfMonth.plusMonths(1).endOfMonth}}

Alina Sysak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 4, 2023

That makes sense! Thank you.

Like Trudy P Claspill likes this
Trudy P Claspill
Community Champion
May 4, 2023

You're welcome.

If my replies solves your issue, please consider marking the Answer as Accepted to help other users find posts with validated solutions.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events