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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to calculate the number of days a ticket is over the due date?

Screen Shot 2020-04-27 at 9.13.40 AM.png

We are currently trying to capture the number of days a ticket is overdue, based on the difference between the due date and now. 

I keep getting the following error message: 

Could not convert the field value to a number. Please ensure the value is a number, math expression or smart-value that can be converted into a number. Total Time Overdue in Days: {now.diff(issue.duedate).days}}

Can someone tell what smart value I should be entering to make this work? 


2 answers

2 accepted

0 votes
Answer accepted

Hello @Breonna Bowen 

Welcome to the community.

Not an automation expert, but can you try this:

{{now.diff(issue.dueDate).days}} instead of {now.diff(issue.duedate).days}} 


Ah! Thank you! 

0 votes
Answer accepted
John Funk Community Leader Apr 27, 2020

Hi Breonna - Welcome to the Atlassian Community!

You are missing a { at the very beginning of the Smart Value. It should have two {{

That worked, thanks! 

Hi @John Funk 

I tried this: {{now.diff(issue.created).days}} on my automation. But it returned an error of:

Error while parsing additional fields. Not valid JSON.
Any idea why?

We're using Jira Cloud. And I'm trying to update a custom field when the status is changed.



John Funk Community Leader Dec 04, 2020

Hi Zaldy - can you share the rule that you have? 

Hi @John Funk ,

I think I got it now.

daysopen.jpgAnd I have to move now() after to get a positive number.

Thanks for your help.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

866 views 14 20
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