Pie chart does not show null or empty slice
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
要約
The built-in Jira Pie Chart gadget does not directly display empty labels as a separate slice. It will only show slices for existing labels. Issues without labels (empty labels) will not appear explicitly in their own slice due to Jira's current limitation - Pie chart does not consider Null items
ソリューション
Option 1: Use a Custom Field
Create a custom label or dropdown field named "Issue Category" for example, and explicitly set values like "Label_A", "Label_B", "Label_C", or "Unlabeled" for empty-label issues. Then use this custom field as the statistic type in your pie chart
Step 1: Create the Custom Field
Access Jira Administration:
Click on the gear icon in the upper-right corner of Jira.
Select Issues from the dropdown menu.
Navigate to Custom Fields:
In the left-hand menu, click on Fields, then select Custom Fields.
Create a New Custom Field:
Click the Create custom field button.
Select the field type:
Choose Select List (single choice) for a dropdown menu where users can select one option.
Click Next.
Configure the Custom Field:
Enter the name as "Issue Category."
Add a description (optional), e.g., "Categorize issues by label or mark as Unlabeled."
[作成] をクリックします。
Set Context and Options:
After creating the field, click on the "..." menu next to the field and select Contexts and default value.
Click Edit Options to add values such as:
Label_A
Label_B
Label_C
Unlabeled
Save changes.
Add the Field to Screens:
When prompted, select the screens where this field should appear (e.g., Create Issue, Edit Issue, View Issue).
Click Update.
Step 2: Populate the Field
Open existing issues in your project.
Assign values to the "Issue Category" field based on their labels:
For issues with labels like L
abel_A
, Label_B
or Label_C
, set the corresponding value.For issues without labels, set "Unlabeled."
Step 3: Create a Pie Chart Gadget
Go to Your Dashboard:
Navigate to your Jira dashboard or create a new one.
Add Pie Chart Gadget:
Click on Add Gadget.
Search for and select the Pie Chart gadget.
Configure Pie Chart Gadget:
Select your saved filter (or create a filter that includes all relevant issues).
Example JQL for filter:Project = project_name
For Statistic Type, choose "Issue Category."
Save Configuration:
Name your pie chart (e.g., "Issue Breakdown by Category").
Save changes.
Additional Notes:
If you encounter difficulties with manually updating fields for existing issues, consider using Jira Automation rules to automatically populate the "Issue Category" field based on labels.
Text fields cannot be used for pie charts; only fields with predefined options (like select lists) are supported.
This setup ensures that you can visualize issues categorized by specific labels and those marked as "Unlabeled" in a pie chart gadget on your dashboard.
Option 2: Use Marketplace Apps
Several marketplace apps allow more customization and can explicitly show empty labels as a separate slice:
Custom Charts for Jira: Allows you to easily configure charts and explicitly handle empty values.
eazyBI: Provides advanced reporting capabilities, including explicit handling of empty labels.
Quick Filters for Jira Dashboards: Offers advanced filtering and visualization capabilities.