Why dasboard shows wrong data however JQL shows correct
Asked by Chinmaya Panda:

We have been observing this peculiar behaviour over the last few months.  
The data shown on dashboard charts are not correct even though the JQL used for the same charts gives correct data  

The dashboard shows a huge count, which is annoying


Answers:
author: Lisa Forstberg
body: Hi [@Chinmaya Panda](/t5/user/viewprofilepage/user-id/4106829) ,

Welcome to the community!

There are lots of filtering options and configurations you can do to a dashboard.

Can you explain what filters and gadgets you are using, what you want to achieve and please add some screenshots of your dashboards and filters.

best regards

Lisa

comments: author: Chinmaya Panda
body: I'm using native JIRA two-dimensional charts ![Screenshot 2024-09-19 163104.png](https://community.atlassian.com/t5/image/serverpage/image-id/348137i0F5E3F2B76397F56/image-size/large?v=v2&px=999 "Screenshot 2024-09-19 163104.png")  
The total number of issues here is 79, but when I click on the 79 to see the details  
JIRA will open up the saved filter which was used for this chart  
Below shown is the configuration of the chart as shown below.  
![Screenshot 2024-09-19 164326.png](https://community.atlassian.com/t5/image/serverpage/image-id/348143i9D860B7C305DDD62/image-size/large?v=v2&px=999 "Screenshot 2024-09-19 164326.png")However if I execute the saved filter the output is not 79, it's just 50, as shown below.  

![Screenshot 2024-09-19 164519.png](https://community.atlassian.com/t5/image/serverpage/image-id/348146iD67F59B7801C95E7/image-size/large?v=v2&px=999 "Screenshot 2024-09-19 164519.png")


author: Lisa Forstberg
body: Intriguing! Just as John wants below I'd like to see the full filter JQL

What happens if you click on the totals - 61 for CAMworks and 18 for Nesting works =\> what numbers of tickets will you get when viewing those "subfilters" in issue navigator?


author: Chinmaya Panda
body: [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516) It used to work properly for many years when we click on 61 for CAMWorks it used to show the correct query with the filter applied   

But it has stopped working for the last few months  
Just for your information below is what I clicked on 61 for CAMWorks  
![Screenshot 2024-09-20 130839.png](https://community.atlassian.com/t5/image/serverpage/image-id/348327i73E48AC831FB4CE0/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 130839.png")  

and when I click on 18 for NestingWorks  
![Screenshot 2024-09-20 131054.png](https://community.atlassian.com/t5/image/serverpage/image-id/348328i2AEBCD2985FD6135/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 131054.png")


author: Lisa Forstberg
body: Intriguing.

Seems like you cant see the Nesting works tickets at all and some of the CAMWorks tickets are hidden. If you go to the nesting works project, are you allowed to browse this project at all? Are there any issue security schemes applied to these projects.

I would however expect that the dashboard gadget would only present those tickets that you have browse permission to.

What kind of field is the "Rework" field? is it a single select or multiselect field?

What happens if you copy the filter and remove the resolution - condition and use the filter in the dashboard? Is it still displaying the wrong numbers?


author: Chinmaya Panda
body: There are no issues related to permission as I'm the project admin in most of the projects.  
Rework is a dropdown list with a single selection option  
I figured out that if I remove the rework field from JQL or wherever this field is not used it's working properly.  

Not sure what has changed in the last few months that is affecting   

One change I fairly remember previously when I used to write JQL previously it used to *Rework* changed to "*Rework\[Dropdown\]*" recently


author: John Funk
body: Hi Chinmaya - Welcome to the Atlassian Community!

Can you share some screenshots that show the differences?

comments: author: Chinmaya Panda
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) Please check <https://community.atlassian.com/t5/Jira-questions/Re-Re-Why-dasboard-shows-wrong-data-however-JQL-shows-c/qaq-p/2816307/comment-id/1052689#M1052689>


author: John Funk
body: Can you share the entire filter?


author: Chinmaya Panda
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) \& [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516) This is a simple filter and we have been using this functionality for a long while, we have observed this weird behaviour recently (maybe in the past 3-4 months)  

somehow the forum is restricting me from posting the query in text here, so putting the image  
![Screenshot 2024-09-20 130522.png](https://community.atlassian.com/t5/image/serverpage/image-id/348326i4BADF2EE4FCD51F6/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 130522.png")


author: John Funk
body: It seems like the Rework field is the difference. If you take that part of the query out, do you get the same numbers as in the gadget?


author: Chinmaya Panda
body: Just observed the problem is with the charts where the "Rework" field is used, but not sure what has happened or changed recently these dashboards and JQLs used to work for so many years and stopped working or behaving weird all of a sudden


author: John Funk
body: Okay, I figured as much. What is the actual filter that is being used by the gadget?


author: Chinmaya Panda
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) As I wrote previously the filter the JQL contains "Rework", we have not changed it in the last 2 years (if I remember correctly), what I tried to check is after removing the "rework" temporarily and the values I got were correct  
I checked a few other cases where we had JQL without this field, there the results were correct.  

Now I'm clueless as to why this has changed  

As I get different results for the same filter with different dashboard gadgets  

With Jira native Two dimensional filter statistics \[Wrong\]  
![Screenshot 2024-09-23 155750.png](https://community.atlassian.com/t5/image/serverpage/image-id/348698i08466334DB98FB08/image-size/large?v=v2&px=999 "Screenshot 2024-09-23 155750.png")  

With Jira native pie chart \[Wrong\]  
![Screenshot 2024-09-23 155811.png](https://community.atlassian.com/t5/image/serverpage/image-id/348700i64C64CAA214E0988/image-size/large?v=v2&px=999 "Screenshot 2024-09-23 155811.png")  

With Jira native Filter result \[Correct\]![Screenshot 2024-09-23 155829.png](https://community.atlassian.com/t5/image/serverpage/image-id/348701i051AA9BDA2ACE4F4/image-size/large?v=v2&px=999 "Screenshot 2024-09-23 155829.png")

Using addon charts \[Correct\]  
![Screenshot 2024-09-23 160014.png](https://community.atlassian.com/t5/image/serverpage/image-id/348702i4541836EDF585FFE/image-size/large?v=v2&px=999 "Screenshot 2024-09-23 160014.png")


author: John Funk
body: What type of field is the Rework field? Is it a single pick list?

And again, can you share the actual filter used by the filter? Not the results filter when you click on a value, but the actual filter.


author: Chinmaya Panda
body: Yes "Rework" is a single pick list  
I have shared the actual filter earlier as well unfortunately when I try to put the entire filter here it does not allow me to post so providing the image  

![Screenshot 2024-09-20 130522.png](https://community.atlassian.com/t5/image/serverpage/image-id/348719i31C59ECEC3944B36/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 130522.png")


author: John Funk
body: Since you only have one value, you might try updating the filter to use = instead of in. That's probably why you are getting the "Irrelevant" option in the pie chart, and probably why the counts are inflated.


author: Chinmaya Panda
body: Tried that as well with no luck


author: John Funk
body: You should contact Atlassian Support then and see what they say.

<https://support.atlassian.com/contact/#/>


Tags: cloud

jira-cloud