I realize deleting issues is something you should not be doing in general. But occasionally we want to delete issues that were created by accident (we do bulk imports that occasionally go wrong).
From what we've found, when you delete an issue, all worklog time logged on that issue is also deleted! We would expect the behaviour to be that you CANNOT delete an issue unless all worklog items are first removed from it. Typically the work logged would be moved to another issue.
Is it possible to prevent issues from being deleted if they have work logged?
We use a SpeakEasy plugin and some custom JS to check if the issue can be deleted and eventually disable or hide the delete option from the menu. It is also possible to display some messages to the users in the same way.
Just let me know if you need some examples.
We do have one instance that the issue was deleted accidentally. In Jira, if you have the delete permission then you can delete an issue even if it has a work log. The case is there is no facility in Jira that will restore the worklog and comments easily. There will be manual thing that you need to do. If you have 160+ comments/worklog it will really take your time.
Now, my concern is the same, I would like to have a message box before deletion. The message box will display a message that the issue have work log and comments. Deleting it will remove all of them. Then there will be Yes/No button.
Is it possible in using speakeasy plus JS? Can you share sample seetings in SpeakEasy and codes in JS?
Hi you can do both:
- enable the plugin globally - that means that users being members of groups configured to be users of SE --> done over SE configuration page, get the plugin enabled (and they can not turn it off).
- install the plugin and leave the users to decide if they want to enable the extension or not.
You can find some informations in the docs https://developer.atlassian.com/display/DOCS/Speakeasy or just download some cool SE plugins from atlassians marketplace.
A good blog entry showing the possibilities of SE: http://blogs.onresolve.com/2011/04/speakeasy-baby-steps/
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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!
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