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

Script Runner: Compare 2 dates Edited


I'm still beginner with script runner and I would like to find a way to compare the time between 2 date. I want to compare the time between my creation date and due date. My goal is to do statistic on time my users let me to resolve all issues.


if (issue.dueDate) { 
return issue.dueDate - issue.createdDate


I suppose my sample will not work like this. 


In Script Runner I use the function "Create a new Script Field"


1 answer

0 votes


Actually it will work. It will give you the number of days between dates.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

71 views 0 6
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