Forums

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

How add N hours to a custom date-time field

Randy Taylor
Contributor
October 14, 2022

My project has a 3 custom fields:

    start-date-time, end-date-time, elapsed time

Whenever the start-date-time or elapsed-time values change I want to recalculate and set the end-date-time value like:

    end-date-time = startdate-time + elapsed-time

I am using Jira Automation and when the value changes for the elapsed-time custom field I tried to set the new end-date-time via:

{
  "fields": {
    "customfield_14201": "{{customfield_14200.addHours({{fieldChange.toString}})}}"
  }
}

but I get the error:

Failed to get value for customfield_14200.addHours({{fieldChange.toString}})}}

Is there a way to do this with Automation rules?

1 answer

0 votes
Nic Brough -Adaptavist-
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.
July 12, 2015

Yes.  Create a dashboard and don't share it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events