Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Eazybi, Only issues where Team was X in particular month

Steve Letch August 1, 2019

Hi

 

Backstory:

Because of the current way a created vs resolved per month bar is set up, if someone edits an issue in Jira to match the criteria (a custom field called 'Team'), it gets sucked into the report/dashboard, this can damage their stats as it looks like they missed a ticket that month.

 

What I'd like is for the created vs resolved report to only include month on month issues where the team field was set to X no later than the last day of that month.

 

So for the July report if we check on August 1st at 7am that there were 1000 created and 1000 resolved by the Desktop team in July, if at 10am someone changes an issue to Desktop team, that it wont show for July 1001 created and 1000 resolved, because it wasn't technically allocated to the Desktop team until August 1st.

 

I hope this makes sense.

 

I'm also in the process of switching these reports away from using a custom field to using assignee group

 

Thanks

1 comment

Comment

Log in or Sign up to comment
Roberts Čāčus
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 19, 2019

Hi @Steve Letch


You can try to create a calculated member in the Measures dimension, which will count all the issues meeting the criteria. However, the field "Team" has to be a single value field cause eazyBI can import value changes only for that type of fields.

First, add the parameters to the eazyBI advanced settings for the custom field, enabling the value change option - https://docs.eazybi.com/eazybijira/data-import/custom-fields/advanced-settings-for-custom-fields.

Please have a look at the code below:

[jira.customfield_NNNNN]
data_type = "string"
dimension = true
separate_table = true
changes = true

Replace NNNNN with the ID of the custom field. After updating the eazyBI advanced settings, you can select the "Import value changes" option for this custom field in the eazyBI import settings.

Also, please enable the "Issue change history" option if it is disabled - https://docs.eazybi.com/eazybijira/data-import/jira-issues-import/import-issue-change-history.


Then you can create the calculated member in the Measures dimension calculating the number of issues matching the criteria. Please have a look at the code below:

NonZero(Count(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
--created in period no last minute changes
(DateInPeriod(
[Measures].[Issue created date],
[Time].CurrentHierarchyMember
) AND
--change custom field more than 10 hours before period end
DateDiffHours(
([Measures].[Transition to status first date],
[Transition Field].[Team]),
[Time].CurrentHierarchyMember.NextStartDate
)>= 10)
OR
--created in previous period with some last minute changes
(DateInPeriod(
[Measures].[Issue created date],
[Time].CurrentHierarchyMember.PrevMember
) AND
--change custom field in last 10 hours
DateDiffHours(
([Measures].[Transition to status first date],
[Transition Field].[Team]),
[Time].CurrentHierarchyMember.NextStartDate
) < 10)
)
))

The calculation relays that you have the Time dimension "Month" level members in the report.


Kind regards,

Roberts // eazyBI support

TAGS
AUG Leaders

Atlassian Community Events