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

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 Leaders.
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

Suggest an answer

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

Atlassian Community Events