How to get Category Status of issue in Measures?

I need prepare reports from dozen Jira Projects which have different set of statuses and different workflows.

I would like to prepare user-defined measures based on [Category.Status] Dimension instead of calculating “Caregory” based Status Name.

Unfortunately I can’t find way how to extract Category status from Issue.

I will be much appreciated for any Ideas.

Looks like I found the answer in post: Story and Epic report and filters for updated date

Product Documentation doesn’t allow to clearly understand all objects properties and objects relationship in the system.


In eazyBI information on status categories is already pulled in and there is no need to define calculated measures to group statuses by category. In dimensions Status and Transition Status, is hierarchy Category that groups all statuses by status categories To Do, In Progress and Done (see picture below).

Zane /

Could you describe the formula to get StatusCategory as Measure?
I believe, it should be something like:

Your answer is useful, but I try to understand EasyBI to be fammiar to use it.

The status category is imported only in the Status and Transition Status dimensions, not as a measure. A category is the property (attribute) of each status, and that property allows group statuses.

Each issue contains the identifier of the status but no other properties like status name or status category:

[Issue].CurrentHierarchyMember.get('Status ID')

If you would like to show the statute category for each issue, then you can use an expression like this:

--in Status dimension Category hierarchy, look for Status matching status ID assigned to issue
  [Issue].CurrentHierarchyMember.get('Status ID')
--for that status, get the parent (category) name
1 Like

Hi @zane.baranovska ,

I am trying to make the same calculation field as you showed for Category, but for Sprints. I need to create a calc field for Sprint dimension that will show all sprints groups for one year.
Each sprint cycle contains a lot of sprints for different teams, so I need to be able select one year in Rows panel, then see something like:
All 2022 sprints / sprints by their number / groups within one sprint

Is it possible to create such custom field? So far I could only make All 2022 sprints / groups within one sprint

thank you in advance!

@Alsu_Zaynutdinova grouping sprint by their parameters is a different use case than showing the statutes category name for each issue and requires another solution.

You might want to check out other Community topics related to Sprints and methods to group them by name or other properties:

Zane /

1 Like

Thank you @zane.baranovska for the reply.

1 Like

Bringing back this subject. I used the above to get the Status Cateory as a measure and present it in a report (as Column). When I add this it breaks the filter. I have a filter to show specific issue type, but When I select to show this new Status Category measure, it shows other issue types
How can it be?
This is what I used:

@Ofer_Cohen the calcaultion is all right. The similar behaviour could be achieved using other issue properties that describes any issue that is on report rows.

You might want to add a predefined measure, such as “Issue created” to the report columns and enable option Nonempty on report rows, so eayzBI could correctly apply filter criteria (Create reports).

More details on report context and guidelines how to build report are described here:

Zane /

Hi I have the non Empty set, and I still get other issue types (Bugs, Stories).
This is the Screen Shot:

And this is the report definition (Simplified Version):
“cube_name”: “Issues”,
“cube_reports”: [ {
“name”: “ER list (CS) OLD”,
“result_view”: “table”,
“definition”: {“columns”:{“dimensions”:[{“name”:“Measures”,“selected_set”:[“[Measures].[Status ]”,“[Measures].[Issue type]”,“[Measures].[Status-Category]”,“[Measures].[Issues created]”],“members”:[]}]},“rows”:{“dimensions”:[{“name”:“Issue”,“selected_set”:[“[Issue].[Issue].Members”],“members”:[],“bookmarked_members”:[]}],“order_by”:{“expression”:[“[Measures].[Issue type]”],“order”:“ASC”},“nonempty_crossjoin”:true},“pages”:{“dimensions”:[{“name”:“Issue Type”,“selected_set”:[“[Issue Type].[BRNGG R\u0026D Types]”,“[Issue Type].[All Issue Types]”],“members”:[{“depth”:0,“name”:“BRNGG R\u0026D Types”,“full_name”:“[Issue Type].[BRNGG R\u0026D Types]”,“calculated”:true,“drillable”:true,“expanded”:true,“removed”:true},{“depth”:1,“name”:“Task”,“full_name”:“[Issue Type].[Task]”,“parent_full_name”:“[Issue Type].[BRNGG R\u0026D Types]”}],“bookmarked_members”:[],“current_page_members”:[“[Issue Type].[Task]”]}],“nonempty_crossjoin”:true},“options”:{},“view”:{“current”:“table”,“maximized”:false,“table”:{“row_dimension_headers”:{“Issue”:“TASK”},“cell_formatting”:{},“freeze_header”:true}},“calculated_members”:[{“dimension”:“Measures”,“name”:“ER Status”,“formula”:“CASE WHEN (IsEmpty([Measures].[Related Issue type]))\nTHEN\n[Status].[Status].getMemberNameByKey(\n[Issue].[Issue].GetMemberByKey([Measures].[ER KEY]).get(‘Status ID’)\n)\nEND”,“format_string”:“StringFormatter”},{“dimension”:“Measures”,“name”:“ER Fix Version”,“formula”:“CASE WHEN (IsEmpty([Measures].[Related Issue type]))\nTHEN\n[Fix Version].[Version].getMemberNamesByKeys(\n [Issue].[Issue].GetMemberByKey([Measures].[ER KEY]).\n Get(‘Fix version IDs’), ’ ')\nEND”,“format_string”:“StringFormatter”},{“dimension”:“Measures”,“name”:“ER Customer Due Date”,“formula”:“CASE WHEN (IsEmpty([Measures].[Related Issue type]))\nTHEN\n[Issue].[Issue].GetMemberByKey([Measures].[ER KEY]).get(‘Customer Due Date’)\nEND”,“format_string”:“yyyy-mm-dd”},{“dimension”:“Measures”,“name”:“ER KEY”,“formula”:“[ERs-Related issues].CurrentMember.Name\n”,“format_string”:“MarkdownFormatter”},{“dimension”:“Measures”,“name”:“ER Old Status”,“formula”:“[Status].[Status].getMemberNameByKey(\n[Issue].[Issue].GetMemberByKey(\n[Issue].CurrentHierarchyMember.get(‘ER-IO Related issues’)).get(‘Status ID’)\n)\n”,“format_string”:“”},{“dimension”:“Measures”,“name”:“ER Link (Related)”,“formula”:“CASE WHEN (IsEmpty([Measures].[Related Issue type]))\nTHEN\n"["\n||Cast([Measures].[ER KEY] as string)\n||"]"\n||"(\”\n||Cast([Measures].[ER KEY] as string)\n||")"\nEND",“format_string”:“MarkdownFormatter”},{“dimension”:“Measures”,“name”:“Related Issue Estimate”,“formula”:“[Issue].CurrentHierarchyMember.get(‘High-level Estimation’)”,“format_string”:“”},{“dimension”:“Measures”,“name”:“ER Link”,“formula”:“[Measures].[Issue Hyper Link]”,“format_string”:“MarkdownFormatter”},{“dimension”:“Measures”,“name”:“ER Product Domain”,“formula”:“CASE WHEN (IsEmpty([Measures].[Related Issue type]))\nTHEN\n[Issue].[Issue].GetMemberByKey([Measures].[ER KEY]).get(‘Product Domain’)\nEND”,“format_string”:“”},{“dimension”:“Measures”,“name”:“Planned due date”,“formula”:“[Measures].[Issue due date]”,“format_string”:“”},{“dimension”:“Measures”,“name”:“Date 2”,“formula”:“[Measures].[Issue Target Release Date]”,“format_string”:“”}],“description”:“Presents ER list and its status”}
} ],
“calculated_members”: [{“dimension”:“Measures”,“name”:“Issue due date”,“format_string”:“mmm dd yyyy”,“formula”:“[Issue].CurrentHierarchyMember.get(‘Due date’)”},{“dimension”:“Measures”,“name”:“Issue type”,“format_string”:“”,“formula”:“[Issue Type].[Issue Type].getMemberNameByKey(\n [Issue].CurrentHierarchyMember.get(‘Issue type ID’)\n)”},{“dimension”:“Measures”,“name”:“Issue status”,“format_string”:“”,“formula”:“[Status].[Status].getMemberNameByKey(\n [Issue].CurrentHierarchyMember.get(‘Status ID’)\n)”},{“name”:“Issue Target Release Date”,“dimension”:“Measures”,“formula”:“[Issue].CurrentHierarchyMember.get(‘Target Release Date’)”,“format_string”:“mmm dd yyyy”},{“name”:“BRNGG R\u0026D Types”,“dimension”:“Issue Type”,“formula”:“Aggregate({\n [Issue Type].[Customer Bug],\n [Issue Type].[Enhancement Request],\n [Issue Type].[Story],\n [Issue Type].[Task],\n [Issue Type].[Bug],\n [Issue Type].[System Test]\n\n})”,“format_string”:“”},{“name”:“Related Issue Status”,“dimension”:“Measures”,“formula”:“[Status].[Status].getMemberNameByKey(\n [Issue].CurrentHierarchyMember.get(‘Status ID’)\n)”,“format_string”:“”},{“name”:“Related Issue type”,“dimension”:“Measures”,“formula”:“[Issue Type].[Issue Type].getMemberNameByKey(\n [Issue].CurrentHierarchyMember.get(‘Issue type ID’)\n)”,“format_string”:“”},{“name”:“Issue Hyper Link”,“dimension”:“Measures”,“formula”:“CASE WHEN (NOT IsEmpty([Measures].[Related Issue type]))\nTHEN\n"["\n||Cast([Issue].CurrentHierarchyMember.Key as string)\n||"]"\n||"(\”\n||Cast([Issue].CurrentHierarchyMember.Key as string)\n||")"\nEND\n",“format_string”:“MarkdownFormatter”},{“name”:"Status ",“dimension”:“Measures”,“formula”:“CASE WHEN [Measures].[Status-Category] = "To Do"\n Then "\u003cspan style=‘color:Black’\u003e" || [Measures].[Issue status] || "\u003c/span\u003e"\n WHEN [Measures].[Status-Category] = "In Progress"\n Then "\u003cspan style=‘color:Blue’\u003e" || [Measures].[Issue status] || "\u003c/span\u003e"\n WHEN [Measures].[Status-Category] = "Done"\n Then "\u003cspan style=‘color:Green;font-weight:bold’\u003e" || [Measures].[Issue status] || "\u003c/span\u003e"\n ELSE\n [Measures].[Issue status]\nEND\n “,“format_string”:“HTMLFormatter”},{“name”:“Status-Category”,“dimension”:“Measures”,“formula”:”[Status.Category].[Status].getMemberByKey(\n [Issue].CurrentHierarchyMember.get(‘Status ID’)\n–for that status, get the parent (category) name\n).Parent.Name”,“format_string”:“StringFormatter”}]

@zane.baranovska If I add the “Issues Created” measure AND I set a filter of “Issues Created >= 1” then I get the correct results. I have lots of reports like that and I do not want to go to every report and do that…

1 Like