And it works whenI install the app, all Jira admins get this permission, but when I uninstall the app the permission is not revoked for all Jira admins.
How can I make sure that when the app is uninstalled or disabled, that the Jira admins will no longer have this permission?
If the app that added the permission is uninstalled, the permission is no longer visible or active in Jira, so it doesn’t really matter who has it. Is there any particular reason why you would like to revoke it?
I use the permission to hide or show web-items.
The idea is that I have two app, app 1 adds a “landing/getting started” page if app 2 is not installed but will redirect to app2 when it is installed.
This works great when app2 is not installed, app1 will show the landing page and as soon as app2 gets installed the link it is shown in place of the landing page link.
But when app2 is uninstalled app1 still sees that the users has the permission given by app2 and thus tries to redirect to app2 but this will show a 404 page since app2 is no longer installed for the Jira instance.
On a side note: the permission added by app2 is removed from the mypermissions API call. But somehow this is not reflected in the web-item conditions
Huh, that is a bug. Uninstalled permissions shouldn’t be available anywhere, including the web-item condition. Could you report it in the ACJIRA project?