Modify Dashboard from within Jira Rest Api

Deleted user March 12, 2021

Hi there,

I am writing shell scripts using cURL against the Jira Rest Api.

I was successful creating filters and changing the permission.

Now I want a Dashboard that show these new filters.

I have an example Dashboard that could be copied and modified.

But somehow I stuggle using the Rest Api.

I can show the example dashboard

But I cannot get items or properties since I don't know how to get the Ids.

I found an article in the internet that extracts the id from the Html div (e.g. <div id="gadget-41304-renderbox"> - the Id is 41304).

What am I missing here?

To be honest I only want to exchange the used Filter Results from within the Dashboard.

So currently the Dashboard shows Filter Results for filter "something" and I want the Dashboard (or its copy) to show Filter Results for the created filter "anything".

 

Thanks,

Marco Schmitz

2 answers

0 votes
Deleted user March 12, 2021

Well, maybe I checked the wrong Jira distribution.
I am using this documentation (more or less successfully): https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-post

Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2021

Ah ok, so you are using Cloud.

I've found couple open questions and I'm afraid there isn't a public rest API to modify a dashboard to Cloud as well.

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-obtain-ItemId-in-api-2-dashboard-dashboardId-items-itemId/qaq-p/514115

https://ecosystem.atlassian.net/browse/ACJIRA-241

My suggestion is to keep this question open for a while, and see other opinions about this.

0 votes
Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2021

Hi @[deleted] ,

Welcome to Atlassian Community!

Unfortunately there are no rest API for Server to create/update a dashboard, see below issue for more info:

https://jira.atlassian.com/browse/JRASERVER-36765

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events