Forums

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

How to calculate the time an issue spend with the priority = Blocked

Luiza Silva
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 4, 2022

Hi,

In some projects, we use the field "priority" to manage the issues that are blocked.

I want to know how many days an issue has the priority = "blocked".

Is there any way to get this information with jira or eazybi?

 

Thanks,

Luiza

3 answers

1 accepted

2 votes
Answer accepted
Eugenio Onofre
Community Champion
August 4, 2022

@Luiza Silva

You can achieve it by using the "Time in Status" gadget on the Jira Dashboards. To do so, you have to create a filter or project and link it to your dashboard gadget.

Another option would be to look into some Marketplace plugins, such as https://marketplace.atlassian.com/apps/1211756/time-in-status?tab=overview&hosting=cloud

Regards!

0 votes
Roberts Čāčus - eazyBI
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 Leaders.
August 8, 2022

Hi @Luiza Silva ,

 

You can retrieve the duration an issue has been in a particular Priority in eazyBI with a calculated measure. The calculation would look at the transition dates in the Priority field for the particular value.

If you want to see the duration for individual issues, I recommend using the Issue dimension in report rows. First, to see only relevant issues, define a calculated measure that would return the number of transitions to the particular Priority. The formula could look similar to the one below:

([Measures].[Transitions to],
[Transition Field].[Priority],
[Priority].[Blocked])

You can add the measure to the report and then filter the report rows by it. Next, define a calculated measure to retrieve the duration with the particular Priority. See the suggested formula below:

IIf(
-- issue still in the Priority?
[Measures].[Issue priority] = 'Blocked',
-- duration till now or resolution date
DateDiffDays(
TimestampToDate((
[Measures].[Transition to last timestamp],
[Transition Field].[Priority],
[Priority].[Blocked],
[Time].CurrentHierarchy.DefaultMember
)),
CoalesceEmpty(
[Issue].CurrentHierarchyMember.Get('Resolved at'),
'today'
)
),
-- duration till transitioned out
DateDiffDays(
TimestampToDate((
[Measures].[Transition to last timestamp],
[Transition Field].[Priority],
[Priority].[Blocked],
[Time].CurrentHierarchy.DefaultMember
)),
TimestampToDate((
[Measures].[Transition from last timestamp],
[Transition Field].[Priority],
[Priority].[Blocked],
[Time].CurrentHierarchy.DefaultMember
))
)
)

The report then could look similar to the one below:

Screenshot 2022-08-08 at 11.09.40.png

 

Please see the eazyBI documentation page for more details on defining calculated measures and filtering report rows.

 

Best,

Roberts // support@eazybi.com

0 votes
Bharathi
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 Leaders.
August 4, 2022

Agreed with @Eugenio Onofre's solution of using "Time in Status" plugin. 

@Luiza Silva, for your scenario of using a field to indicate the blocked status and to find the duration of the issue in that status, the aforesaid plugin is a boon. It has options to filter out issues based on a user/project/JQL filter/sprint/custom JQL. Once the required issues are filtered out using a JQL, we can view the different options like status duration/ duration between statuses/ reports based on assignee or group or count or date.

Hope this helps!

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events