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?
@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 :)
Like "jira.permission.delete" = false
Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events