Forums

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

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 _Almarise_
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
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events