Hello
We set up automatic changes to the DueDate field in tasks. To do this, we need to know how long the task was on a specific status.
How do I find out how long a task has been on a specific status?
How to create a sql query?
How can I find out how long a task has been in the original status when updating the status?
The question is closed.
Example sql query:
SELECT EXTRACT(DAY FROM (b - a) DAY TO SECOND) FROM (SELECT (SELECT max(CREATED) FROM changeitem JOIN changegroup ON changeitem.groupid=changegroup.id WHERE changeitem.field='status' AND dbms_lob.substr(changeitem.newstring,4096, 1) = 'Open' AND changegroup.issueid = '683789') a , (select trunc (SYSDATE) from dual) b FROM dual);
Hi
If you use PoweScript this can help you
https://confluence.cprime.io/display/TR/Get+time+spent+in+certain+status+per+issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thank you for the information. I'm trying to figure out how to get the right value.
I need to assign a string. Can you help me?
This is the wrong script:
string t;
string[] timeSpentInStatuses = getStatusesTimeSpent("JIRA-14588");
t = timeSpentInStatuses[7];
The value of the string "t" is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.