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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

write the difference between two dates in the customfield

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
Community showcase
Published in Marketplace Apps & Integrations

How to create a Confluence page linked to a Jira cloud ticket

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...

57 views 0 2
Read article

Community Events

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

Events near you