how to set customfield date = to created + 24 hrs

tom webb November 11, 2015

Hi, i am wanting to have a custom field powered by javascript which simply looks at the created date and adds 24 hours to that.

How can i achieve this as my code doesnt seem to work sad

<!-- @@Formula:
if (issue.get("resolutiondate") == null || issue.get("created")==null)
return null;
else 
return (issue.get("created").getTime() + 60*60*24*1000);
-->

1 answer

0 votes
Robert Dzido
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.
November 30, 2015

You can use Script Runner plugin (use behaviours functionality)

Suggest an answer

Log in or Sign up to answer