Hi all - it seems that the new Dashboard capability has the ability to get the dashboard filter that sits on top of the overall dashboard; however the nomenclature for something as like issue status does not match and there does not appear to be an API to convert the overall dashboard filter into a JQL filter. Granted we could reverse engineer a mapping, but that seems fragile and problematic.
Here’s an example of the filter data accessible by the new dashboard widget
{
"id": "0e8dc2ba-d7be-4313-9ced-44c51386e227",
"operator": "OR",
"groups": [
{
"id": "7658d29c-3840-45d7-9f6e-f37e08f51dd7",
"operator": "AND",
"groups": [
{
"id": "0275684b-42a7-49bd-8946-a72b52c14c9f",
"label": "Work item status",
"comparison": "in",
"defaultValues": [],
"dimensions": [
{
"name": "issue_status",
"product": "jira",
"subProduct": null,
"dynamicDimensionKey": null
}
],
"metadata": null
},
{
"id": "56fc6e72-13d9-4cd2-a941-4aaea3a25aae",
"label": null,
"comparison": "in",
"defaultValues": [
"ari:cloud:jira:0068ce87-8e41-4389-bc45-6dc5d106b187:project/10235"
],
"dimensions": [
{
"name": "project_name",
"product": "jira",
"subProduct": null,
"dynamicDimensionKey": null
}
],
"metadata": null
}
],
"metadata": null
}
],
"metadata": null
}
and here’s an example of what you’d get from the https://.atlassian.net/rest/api/3/field api
{"id": "status","key": "status","name": "Status","custom": false,"orderable": false,"navigable": true,"searchable": true,"clauseNames": ["status"],"schema": {"type": "status","system": "status"}}
I feel like I’m missing some important detail about how one should map these fields or any combination of fields for that matter. Sure we can reverse engineer it and embed a map in our app, but that seems suboptimal.
Suggestions as I’m assuming I must be missing something?