How do you handle soft delete of JIRA issues

HI all,

As this option doesn't exist i would like to advise and hear ideas from people that found workaround for this need.

 

In many cases we do not want to allow users the permission to delete.

What i do in most cases is set a status & Resolution that the issue moves to if the user would like to delete an issue. In the agile boards i update the board filter will not include issue in 'status\resolution=Removed'


Would love to hear other people thoughts about this and hear other solutions you found usefull smile

Thank you!

 

Shirley

 

2 answers

1 accepted

Accepted Answer
3 votes

I've seen several options, but the basic ones that work ok (sometimes combined) are

  • Setting a security level that hides the issue
  • Moving issues into a "wastebin" project
  • As you suggest, a "ignore me" status and resolution in the workflow

 

Setting the security level is my favorite.

Thanks!

Can you explain a littlebit on how you set the security level ? on what conditions?

I Would truely like to setup a security level but i'm not sure how to work with it.

I want to maintain the deleted status and use a security level to hide these issues, not sure how can i achieve both

Thanks again

 

Actually, using both is probably slightly easier and neater.

First, you have status in the workflow for "deleted".  You probably want a transition into it from all other status, and then a transition out, back to early on in the lifecycle of the issue.

With the security level, you can define a scheme that has a single line saying something like "project administrators are the only ones who can see this issue when the security level is set to 'deleted'".  As you're using a workflow to the deleted status, you can use a post-function to set the security level to 'deleted' automatically as the user uses the transition, and another one to remove it when "undeleting"

the above solution doesnt work. So can i please know what i am missing. 

I think you need to explain what you mean by "doesn't work", because it works perfectly in the places I've seen it implemented.

i tried to implement this feature in subtask

we have a subtask that i would like to hide using the issue security scheme. According to my understanding the subtask inherits the security level of its parent. So when i have assigned the issue security scheme on the subtask it does not hide from the board. 

My implementation : Created issue security scheme and assigned it to role project-administrators

Created a workflow state deleted and added a post function to assign it to new issue security scheme i created

and I still see it on my board. 

So i assume its the subtask that is causing the issue. Please do let me know

we have to assign issue security in project settings for this to occur...this was the step i missed due to which i could not get the issue security scheme working. It now works fine

Hi Shirley,

I think, the way you done is correct workaround, there is no such option for soft delete in JIRA smile 

 

Thanks,

Hemant

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,947 views 2 7
Join discussion

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