Pie chart does not show null or empty slice

プラットフォームについて: 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

  1. Access Jira Administration:

    • Click on the gear icon in the upper-right corner of Jira.

    • Select Issues from the dropdown menu.

  2. Navigate to Custom Fields:

    • In the left-hand menu, click on Fields, then select Custom Fields.

  3. 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.

  4. Configure the Custom Field:

    • Enter the name as "Issue Category."

    • Add a description (optional), e.g., "Categorize issues by label or mark as Unlabeled."

    • [作成] をクリックします。

  5. 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.

  6. 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

  1. Open existing issues in your project.

  2. Assign values to the "Issue Category" field based on their labels:

    • For issues with labels like Label_A, Label_B or Label_C, set the corresponding value.

    • For issues without labels, set "Unlabeled."

Step 3: Create a Pie Chart Gadget

  1. Go to Your Dashboard:

    • Navigate to your Jira dashboard or create a new one.

  2. Add Pie Chart Gadget:

    • Click on Add Gadget.

    • Search for and select the Pie Chart gadget.

  3. 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."

  4. 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:

Last modified on Mar 20, 2025

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.