Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

write the difference between two dates in the customfield

sergeev.viacheslav@telestarcom.ru August 11, 2020

Good afternoon! Using the script, I try to write the difference between two dates in the customfield, the script is presented below.

<!--@@ Formula:
if (issue.get(Created())==null || issue.get("customfield_10226") == null)
return null;
return customfield_10250 = (issue.get("customfield_10226").getTime() - issue.get(Created()).getTime());
-->;

Cript Console throws an error - The script could not be compiled: <pre>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script89.groovy: 1: unexpected token: < @ line 1, column 1. <!-- Formula: ^ 1 error </pre>.

Help solve the problem

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events