Forums

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

Automation Rule Help: Update Date Field with a modified date from other field

Marina Kotler July 24, 2022

Hello all

Please help / support :  Need a set a following action in Automation Rule :

 - there is custom field : "Solution Validation Target End"  that   contains of date

 - Need to setup other field by increasing "Solution Validation Target End"  by 2 weeks (10 working days / or 14 days).

 

 Please advise - what smart value / how to write the Action ?

Thank you in advance !

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Tom Lister
Community Champion
July 25, 2022

Hi @Marina Kotler 

You can set a field in the Edit Issue action component. Choose the field to set and enter the smart value.

Check out the smart value docs here

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

There is a section showing how you can add time to a date

{{[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)

Example

{{sprint.startDate.plusDays(14)}}

If the current value of {{now}} is 2020-08-20T13:12:03.1+0000:
{{now.plusHours(1).shortTime}}
//returns 2:12 PM

{{now.plusWeeks(3)}}
//returns 2020-09-10T13:12:03.1+0000:

Tom
Marina Kotler July 28, 2022

Thank you very much !

Suggest an answer

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

Atlassian Community Events