Forums

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

time in status return negative value

ABRAR ALMADI May 8, 2020

Hi all, 

I am trying to write a script that calculates the time spent in each status. I have adapted the code from here and change it to my status 

 

https://community.developer.atlassian.com/t/how-to-calculate-total-time-spent-on-to-do-issue-excluding-weekend/35084/5

 

It currently returns negative value in Some issue 

Could anyone please advise me on how to fix this error ?

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2020

Hello @ABRAR ALMADI 

Welcome to the Atlassian Community!

Per your description, I understand you have created a new script for Jira to calculate the time spent in each status, however, it is displaying negative values in some issues. Is that correct?

Since you are asking a development question, I believe you might ask for help in the Atlassian Developer Community:

https://community.developer.atlassian.com/ 

I saw you added a comment in the topic where you get the Script. I suggest opening a new topic about your question in the portal with this same description and the details of the time spent returned (Including screenshots) for you with the script, so all the users in the portal can see your question (Not only the watchers of the post you commented).

Let us know if you have any other questions.

ABRAR ALMADI May 14, 2020

thank you @Petter Gonçalves 

I found A way to fix the issue by re-indixing 

Like Petter Gonçalves likes this

Suggest an answer

Log in or Sign up to answer