Good afternoon! Using the script, I try to write the difference between two dates in the customfield, the script is presented below.
if (issue.get(Created())==null || issue.get("customfield_10226") == 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
Have you been looking for a solution to easily create Confluence pages directly from a Jira Cloud issue? The no code solution is here with the brand new app Elements Publish to Confluence, which work...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events