How can I call Gadget delete event in Dashboard ?

Maulik Adiecha January 30, 2018

I need to perform some operations once user delete gadget on dashboard. I have found events like jira.setDashboardItemTitle(title) to set  title, jira.DashboardItem.onDashboardItemEdit to perform some operations on edit click.

Like above events is there any delete event ?

Any help will be appreciated. 

1 answer

0 votes
Moga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2018

Hi Maulik,

I don't have an exact solution as you are looking for. However, when a user deletes a gadget on a dashboard, the web browser sends:

DELETE <Base URL>/rest/dashboards/1.0/10100/gadget/10100

Maybe you can catch this and then perform some operations. I hope that this helps.

Cheers, 
Moga

Suggest an answer

Log in or Sign up to answer