I'm trying to use the dashboard/search api to get a dashboard and then I want to update the dashboard after that once I have the ID for it. I am attempting to do this using the web api and assuming I need to utilize the jql in the get url. Can anyone help me to understand how to get that information.
i.e. https://url/rest/api/3/dashboard/search?jql=name=dashboardname
Hi @Ben ,
you can use https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-id-get to retrieve a dashboard by name. Please use dashboardName parameter.
After doing that, you can update it using the following Rest API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-id-put
Hope this helps,
Fabio
Thank you for the help. I'm having trouble understanding the formatting for this. I'm trying https://url/rest/api/3/dashboard with a json body of
{
"dashboardName":"name"
}
and variation on that theme as well. Can you help me with the actual formatting. I'm testing with postman at the moment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ben , the correct api to search dashboard via name is :
https://YOUR_INSTANCE_URL/rest/api/3/dashboard/search
the parameter is correct
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Catworkx_ I finally figured it out. I put this:
...dashboard/search?jql=&dashboardName="dashboard name here" and it worked
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm happy for that! Please mark my answer as accepted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.