Pie Chart Gadgets - Using script runner functions

Hi,

I found a a problem using a "Pie Chart" gadget in
Jira's dashboard. When we insert 2 Pie Chart Gadget using 2 different
filters (using issueFunction), the gadget show the wrong number of issues.

According to Atlassian, the cause may be related to the filter used. The problem didn't happen when we use default Jira's function.   

 

filter.pngpie chart.png

Thank you

1 answer

0 vote

All of the category stuff should be the first parameter of dateCompare, otherwise you are running dateCompare across every issue in your instance.

Aside from that, it doesn't seem to be a problem with pie charts, when you make the change I just said, does it produce the correct results?

What version of ScriptRunner is it? For some reason I can't comment on certain answers so amending this one. Ah I seem to remember this is an old version - can you try the latest (with an eval licence) just to see if it fixes it, you can revert back afterwards.

I changed the filter but did not solve the problem.
We note that the problem occurs when I add 2 pie chart gadget, using similar filter. The problem does not occur if we let only one gadget.  


In the print screen below shows that the amount of issues of "teste2" filter  is equal to "teste3" filter.
Every time we refresh the page this value changes.


image2016-4-29 15:39:32.png

image2016-4-29 15:41:10.png

image2016-4-29 15:41:34.png

image2016-4-29 15:42:16.png

image2016-4-29 15:49:12.png

image2016-4-29 15:49:19.png

image2016-4-29 15:49:49.png

 

 

image2016-4-29 15:50:39.png

Hi,

Can anyone help me with this problem?

@Jamie Echlin [Adaptavist], could help me with this incident?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

165 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you