|
Summary: |
Handle the possibility to pass a JQL instead of a filter ID in BiDimensionalGridChart doesn't work if filterId is not set |
Description: |
Set to reproduce:
Write a Currently calling the macro like this way doesn't work : {code} {{jiraBiDimensionalGridChart id="Instance ID" query="project = ~"My project~" " yAxisField="assignees" numberOfResults="5" xAxisField="statuses" /}} {code}
Expected result: We see the chart
Currently : the to call this macro crash [here|https://github we need to have preconfigured filter on Jira side . com/xwiki-contrib/jira/blob/169d4d67405d15a46aac3caafbf2c448a9a8d83e/jira-macro/jira-macro-common/src/main/java/org/xwiki/contrib/jira/macro/internal/HTTPJIRAFetcher.java#L129].
After analysing the error This issue is to implement , as same as for the Jira server return a HTTP code 400 with this content {code} { "errorMessages" : [ ] other jira chart macro , "errors" : [ { "field" : "projectOrFilterId", "error" : "dashboard.item.error.required. a possibility to pass a query " } ] } {code} to the chart so we can have any query. |
|