Hi.
I have been trying to figure out why pie chart doesn't show our custom field, that we are adding via custom plugin. Its a multiUser selector field, but with some added logic. And when selecting it in pie chart diagram, it doesn't show all data. It kinda works the opposite way.
If I select my field, it shows results for none. So where our field is empty.
I can see that jira fires a rest call to: jira/rest/gadget/1.0/statistics?jql=***
And it returns only the none value, not like it does for jiras built in field type.
I have two of those pie charts on, so i see two rest calls, and one is configured to use default jira multiUserPicker and one is our custom picker.
And I can see that it returns wrong json from that rest call. But I cannot find anywhere any documentation, about that rest api. Why It would return incorrect results, what could be the problem, or any kind of information.
What is the procedure to find out what jira does on that rest api and why it cannot find my field ? Because of course there are options to implement custom filters, that manually override that rest call, and use different values that I can get from DB or any other way, but it doesn't seem the right way to do it.