There are 2 updates.
 
 
JIRA Components / cid:jira-generated-image-avatar-dc60990b-a753-4c61-9de3-33f98fc23fe4 JIRA-74 Open

Handle the possibility to pass a JQL instead of a filter ID in BiDimensionalGridChart

 
View issue   ·   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-7d6b4a6c-e254-4c79-9df8-182d8c20f0ae Changes by Josué Tille on 12/Mar/25 11:34
 
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.