Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

{{now.diff(issue.created).prettyPrint}} output is in negative

Neetu Verma
Contributor
April 28, 2020

Hi,

 

I am using diff functions to calculate the aging of a given a ticket. 

{{now.diff(issue.created).prettyPrint}} the output is negative

but my answer is like -3 days 8 hours. How can I remove negative from this?  I did try switching the function and it didn't work.

 

Thanks

Neetu

1 answer

1 accepted

0 votes
Answer accepted
Mehmet A _Bloompeak_
Atlassian Partner
April 28, 2020

Hi @Neetu Verma ,

Below worked for me

{{issue.created.diff(now).prettyPrint}}

It displayed below output for my sample issue.

71 days 23 hours 40 minutes 24 seconds
Neetu Verma
Contributor
April 28, 2020

Thanks.. it worked I have no clue what I was doing wrong.. I tried it last night and it didn't work.

 

Thanks

Neetu

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events