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: 

Insert something like now.plusMonths(customfieldXXX)

Clàudia López
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!
August 8, 2023

Hello,

 

Is there a way to insert the “Period repetition time” in now.plusMonths(3), something like now.plusMonths(customfieldXXXXX)?

 

Where customfieldXXXXX is a number field (like = 3)?

 

Thanks,

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Esteban Diaz
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 Champions.
August 10, 2023

Hi @Clàudia López ,

Maybe if your are trying to calculate and set a custom field value ....

Yo can use an automation and some smart values ... maybe this one could work for you?

{{[date].plus[Unit]([number])}}

Takes the given date and time, adds the number of the unit specified, and returns the resulting date and time. The units that can be used are:

Millis

Seconds

Minutes

Hours

Days

Weeks

Months

Years

BusinessDays (business days are considered to be Monday to Friday, 9am to 6pm)

 

Cheers!


Esteban Diaz

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events