Forums

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

Is it possible to change the filter settings of a gadget using REST API?

Riho Fujiki February 9, 2022

I am using Jira Cloud to manage multiple projects at once.

And I would like to use the JIRA REST API on ScriptRunner for Jira Cloud to automate the following no.2(copy~) and no.3.

 

1. Create a template project, dashboard, and filters to set for a dashboard gadget.

2. After creating a new project, copy the template dashboard and filters, and rewrite the filters from the template project key to the new project key.

3. Then, set the new filters to a gadget in the dashboard copied.

 

Now I have created no.2, but I don't know how to create no.3.

Is it possible to change the filter settings of a gadget using REST API?

1 answer

0 votes
Sachin Dhamale
Community Champion
February 11, 2022

Hi @Riho Fujiki 

There is no specific REST API is available to update the gadget.

One thing you can do is update the filter which is apply to the gadget using this API

Here is the API details

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-filters/#api-rest-api-3-filter-id-put

 

Thanks,
Sachin

Riho Fujiki March 24, 2022

Hi @Sachin Dhamale 

I'm sorry for the late reply.

It is unfortunate that there is no specific API to update the gadget. I will consider another method.

Thanks,

Riho

Suggest an answer

Log in or Sign up to answer