We are using JIRA Cloud for Silverpeak to manage Issues and Test Executions.
Now, we want to create a new Gadget to calculate the quantity of Test Executions by status (pass, fail, wip, blocked and unexecuted) and show them on a Pie chart. This gadget needs at least one parameter: ZQL Filter Query. With this gadget, QA Tester can run a Python script (calling “/rest/api/2/dashboard”) to add this gadget to JIRA Cloud dashboard. As of writing this topic, this script already can successfully add a Gadget of “Test Execution Details” to dashboard; However, Besides the detailed information, QA Tester also wants a summary result shown in Pie chart.
I successfully register this add-on into my developing JIRA Cloud instance (https://xinzhijiang.atlassian.net), and I can see it on Manage add-ons page; But this add-on can not be listed when I click Add a new gadget on a dashboard. I hope it appears on the list of Add a gadget page, For this purpose, what should I do?
The dashboard item’s availability is controlled via the add-on’s descriptor. If you are still having trouble, you could show the content of the add-on descriptor here.
This is my add-on which was built based on Atlassian Connect Dashboard Item Example, this add-on still can not be listed when I click add a new gadget on a dashboard.
I think your "conditions" value may be to blame. A dashboard item will only be available when all of its conditions are satisfied. The condition you’ve specified appears to be a relative URL, and I don’t believe that’s a valid way to specify a condition.
See the Conditions page of the Jira Cloud Platform documentation.
Also check that the relative URL /thumbnail returns a valid png or gif image.
For reference, here is the dashboard item module that we use in Risk Register: