Can I prevent deletion of issues with time logged?

Nathan Funk September 23, 2013

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?

Thanks.

3 answers

1 accepted

2 votes
Answer accepted
MichałS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2013

Hi Nathan,

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.

Ron Duag October 22, 2013

Hi Nathan,

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?

Cheers.

MichałS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2013

Hi, sorry for the late answer.

SpeakEasy is mainly pure JS.

If you install the plugin in Jira you can create a simple example plugin over the installation wizard in user profile -> extensions panel.

Chreers

0 votes
valeria cruz September 10, 2014

Hi!

This plugin is not support JIRA new versions =/

There is another way of doing this reminder?

0 votes
Ron Duag October 24, 2013

Thanks for your reply. Do you think my requirements is possible using speakeasy and JS?

Another question, after you created a plugin speakeasy + JS, can you deploy that globally or it's per profile?

Thanks.

MichałS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2013

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/

Cheers

Suggest an answer

Log in or Sign up to answer