Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Cloud: is there any way to allow “ScriptRunner Add-On user” to delete an issue of a project? Edited

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.

1 answer

1 accepted

0 votes
Answer accepted

@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

Captura de tela 2021-06-17 222350.png

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

Thanks @Carlos Faddul 

This project role "atlassian-addons-project-access" worked for me.

Like Carlos Faddul likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

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...

947 views 2 22
Read article

Community Events

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

Events near you