Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copying dashboard not working using REST API

Deleted user March 15, 2021

Hi there,

so I want to copy a dashboard using REST API
(https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-id-copy-post)

Showing the dashboard using REST API works nicely.

Creating new filters and changing the permission using REST API works as well.

But copying a dashboard produces the following error:

curl --location --request POST 'https://jira.xxx.com/rest/api/latest/dashboard/24765/copy' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic xxx' \
--data-raw '{
"name": "some name",
"description": "some description",
"sharePermissions": [
{
"type": "project",
"project": {
"id": "13831"
}
}
]
}'


Note:
 Your browser does not support JavaScript, Press Continue to proceed...

So I played around with the payload, especially that sharePermissions part, but I got similar errors.

 

Help me?

Marco Schmitz

1 answer

0 votes
Bill Sheboy
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 15, 2021

Hi @[deleted]  -- Welcome to the Atlassian Community!

That REST API call looks to be marked as "experimental", so you may want to search and perhaps repost your question in the developer community forum to get some ideas to help:

https://community.developer.atlassian.com/search?q=copy%20dashboard

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events