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
atlassian, opsgenie migration, jira service management, incident response, on‑call management, alerting tools, migration guide, devops operations, service reliability, atlassian learning, migration best practices, opsgenie support, IT operations

Join the Opsgenie Migration group 🚚

Heads up! Opsgenie's features are moving to Jira Service Management and Compass. Planning your migration? Join our dedicated group for resources and tips from Atlassian and the Community to ensure a smooth transition.

Check it out ↗
AUG Leaders

Atlassian Community Events