[JIRA] Remove issue after transition

Hello all,


I want to remove isue after a unique transition. I see in the post function configuration but no option existing here.


For your information, Spam sent to our mailbox create issue and we want to remove these with a simple transition, my users have delete rights on this project.


Do you know a JQL script permit this ?


Have you an idea about this case ?


Thanks for your help,



2 answers

1 vote
Alex Christensen Community Champion Jan 10, 2018

Are you using the default Jira mail handler to create new issues via email? You might be better off creating some sort of rule in the mailbox to prevent that spam from making it into that email's inbox, which would prevent the issue being created in Jira in the first place.

Also, you shouldn't need a separate transition just to delete an issue. If a user has delete permissions on a project, there are a couple options available:

  • Open the issue, go to More > Delete.
  • If you want to delete in bulk from the issue navigator, go to Tools in the upper-right corner and choose the option to bulk change the issues in the current result. There should be an option to delete when going through the steps for bulk changes.

Thanks for your response,


I did a mistake on my last comment, jira users don't have permission to delete issue. With transition, we want to give a friendly usage to remove issue without give permission to delete issue.


About the rules for spam, we already have configuration about this.


It is possible or do you must use "delete" feature.



Alex Christensen Community Champion Jan 10, 2018

Even if this is possible using a script post-function, I wouldn't give anyone the ability to delete if you don't want them to have permission to do that in first place. Personally, I'd stick with the Delete feature just for auditing purposes.

Regardless, I've not done this before, but this post might help you in the right direction.

Thanks again for your help,


I will see this post and I will give you a feedback.

Hello all,


I don't understand this script and many functions used doesn't exist on the version 7.6.


Have you another idea about this case ?


Thanks for your reply,



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

937 views 3 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you