Hello everybody,
I am working on a ScriptRunner listener script. This listener is executed on “Issue Created” event, and based on some search criteria it deletes duplicate issue (if any). This listener works fine in my dev cloud instance. In the project permission, I have allowed the reporter user to delete an issue. And the script is being executed as “Current User”.
However, in the production environment, we don’t want to allow reporter/customer to delete any issue. So, my question is, is there any way to allow “ScriptRunner Add-On user” to delete an issue of a specified project?
Thanks.
@Nazmus Sadatto control who deletes issues or not, you should check your permission scheme, in the option "Delete Issue", then you'ill be to delete issues by permissions based on users, roles, groups
Usually, add-ons on Jira cloud ALWAYS have the project role "atlassian-addons-project-access" (green) and there is no way to exclude they in the Permission Scheme
If you want to block in a specific status, you can use properties to block to delete on status. There are many options in this link of properties :)
https://www.j-tricks.com/tutorials/permissions-based-on-workflow-status
Like "jira.permission.delete" = false
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.