The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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

TAGS
AUG Leaders

Atlassian Community Events