We are currently in the process of developing our first JIRA Server add-on. In existing add-ons such as Tempo Timesheets, we’ve noted custom permission schemes being added into the JIRA Global Permissions admin panel which can be applied to groups and feel like this kind of setup would suit our addon.
After a few days of experimenting with API calls and even reading the JIRA source code, we are still stuck with trying to implement this custom global permission scheme. Does anyone have any experience in implementing custom global permissions schemes, or know any other resources we should be looking into?
If this was done twice, an error was generated saying that the group already has the global permission. However, the global permissions did not appear in the JIRA admin panel. Is there something else that is needed to be done to have this appear in the admin panel so that admins can apply the permissions to groups via UI instead of programmatically?
where the i18n-* are keys that you place in the i18n properties file. The key attribute is something unique to the permission (make sure it has a prefix of your add-on in it).
Then in your code you’ll get a GlobalPermission Key through GlobalPermissionKey.of("sample.custom.globalpermission") and you can then do whatever you want to it.