Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-25899

Pie Chart report constructs wrong JQL for the "Irrelevant" heading

    XMLWordPrintable

Details

    Description

      Issue Summary

      This is reproducible on Data Center: (yes) 

      Steps to Reproduce

      1. Create a custom field in Jira of checkbox type. Assign that to only one issuetype. Lets assume, we assign it to only Task issuetype. Example:
      1. Create 4 issues, one story, two tasks and one bug.
      2. In one the Task, make sure to fill some value for the customfield created in step 1 above.
      3. Create a Pie Chart report with statistics type selected as the custom field that you created and you will see something like below:
      1. Now, if you click on the number against the Irrelevant heading, you will notice that the JQL created is Incorrect. Refer to the below screenshot

      1. The JQL is same which is created when you click on the number against the None heading. 

      Expected Results

      The JQL for Irrelevant heading should be of the issues for which the field selected in the  statistic type in report doesn't make sense. For example, if we consider above example, the correct JQL should be

      project = REP AND issuetype != task

      as Ticket Error customfield is not assigned to any Bug or Story and is only available for Tasks.

      However, this JQL can be different in different scenarios based on the context.

      Actual Results

      Irrelevant heading constructs incorrect JQL when click on the number against it and due to this it also lists the incorrect issues in the issue navigator. Also, the JQL is actually same what is constructed for the None heading.

      Workaround

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            685a0702ccab Mohit Yadav
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: