Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-75625

Incorrect "Teams" count displayed in Issue Statistics Gadget when sub-tasks are present.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 9.2.0, 8.20.21
    • Dashboard & Gadgets
    • None

    Description

      Issue Summary

      The Issue Statistics Gadget shows wrong results for "Team" type if there are sub-tasks associated with any of the Teams.
      The gadget should be displaying each team along with the count of issues associated with it, however, if there's a sub-task (which inherits the team value from the parent task) the gadget will not include it in the results. However, if the count number is clicked (to display the issues through the JQL search) the result will be correct (the total of tasks + sub-tasks).
      That also leads to incorrect value for "None" (which displays the issues not associated with any teams) as it takes the sub-tasks into count but when the link is clicked the JQL result will be less (as the sub-tasks with Teams will not be included).

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. At least one team is a prerequisite.
      2. Have at least two issues to test with.
      3. Assign one issue to the team.
      4. Create a sub-task to that issue (which will inherit the same team).
      5. Create an "Issue Statistics" gadget with Statistics Type "Team".

      Expected Results

      The gadget should display the count of issues associated with that team to be 2 and the "None" to be 1.

      Actual Results

      The gadget displays 1 issue associated to the team and 2 as "None":

      Here's a screenshot when the "1" count is clicked (for the Team issues):

      (Notice that the actual result is two issues not one as the sub-task is included)

       

      A screenshot when the "2" count is clicked (for the None issues):

      (Notice that the actual result is one issue only)

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Activity

          People

            Unassigned Unassigned
            33b51f2467cc Ahmed Raafat
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: