Forums

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

Calculated Date-Time Field (by JWT) timeInStatus("Custom_Status") not calculating correctly

Helena
Contributor
March 21, 2022

Hi,

I need to get issues' duration in certain status.

For example, Custom Status is "Planning" (type=Calculated Date-Time Field (by JWT)), and I need to get how long the issue has been in this status (preferably in Days).

Setup: 

Expression: timeInStatus("Planning")

Display format: 

   Format type=Custom format

   Custom date-time format=D

For many of the issues I get the right duration. But for some issues the duration is not correct, and I can't figure out, why. 

I have three this kind of field, and there are cases where 2 of them are correct and one of the three is wrong.

Also tried Custom field type Calculated Number Field (by JWT) and this counts duration correctly on every issue, but the display format is a bit uncomfortable to use for us.

Any idea why Date-Time type duration count is unstable?

Jira Server v8.13.17

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 7, 2011

Er, first, you don't need to connect Jira to the internet to get a code. You just need to go to Atlassian's site and generate a license key - you can do that on any machine, and then put it into your Jira via the usual browser. Jira itself doesn't use the connection at all.

"Unable to create and acquire lock file" tells you that there's something wrong with your system. You may have tried to start Jira again, while there's one already running using that data directory, or you've got something wrong with the home directory. Check the permissions on the directory - the Jira user needs full access to it. Also, consult your logs - your "blah blah" probably contains the actual reason for the error

0 votes
Gerardo Garcia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2016

I have the same problem while trying to update Bitbucket Server. Any idea of what it is?

Im on windows server, and after stoping Bitbucket and installing the new version I saw a .lock file left in the home directory that I can't delete and change owner. This might be the problem but don't know how to solve it 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events