BW Haze

Documentation

Undelete for Jira — Restore Deleted Work Items

1. Install

A site admin installs the app from the Atlassian Marketplace into Jira. From then on, the app keeps a copy of every work item that is created or changed. There is nothing else to set up.

One optional step is recommended: let the app see work items with a security level and restricted comments, so those are kept too.

2. How it works

3. The recycle bin

Search by key or summary, and select View to see a deleted work item's fields, description, comments and links before restoring it.

4. Restore work items

  1. Select one or more work items in the recycle bin, or open one and select Restore.
  2. The restore runs in the background; the list shows Restored as ABC-123 when it is done.

What comes back:

What doesn't come back: the original key (Jira gives a new one), attachments (Jira deletes the files with the item), logged work, history, and fields that are not on the create screen. The restore notes on the entry list anything that could not be restored.

5. Security levels and restricted comments

Jira hides work items with a security level, and comments restricted to a project role or group, from everyone outside them, including apps. Jira doesn't even tell the app when such a work item is deleted. To keep and restore them, let the app see them:

Work items and comments the app can't see are not copied. In the recycle bin, work items that had a security level are shown only to Jira admins. A restricted comment is never restored without its restriction: if Jira refuses it, the restore notes say so and the comment stays readable in the recycle bin.

6. Settings

In Jira settings → Apps → Recycle bin → Settings, a Jira admin can choose:

A Jira admin can also delete permanently a single entry from its detail view.

7. Permissions and data

PermissionWhy the app needs it
read:jira-workRead work items to keep their copies, and check that you are a Jira or project admin.
write:jira-workCreate the work item again when you restore it, with its comments and links.
read:jira-userWrite the names of the original authors in restored comments (display names only).
storage:appKeep the copies and the recycle bin in Forge storage.

See the privacy policy and security statement.

8. Limits

9. Troubleshooting

What you seeWhat to do
"Only the basic fields are known"The work item had no copy: it didn't change since the app was installed, or its project was left out in the settings.
"The app is not allowed to create work items in this project"Check that the app still has its project permissions (the atlassian-addons-project-access role).
"The status … could not be set"The workflow has no direct transition to that status; move the restored item by hand.
A deleted work item with a security level is missing from the recycle binThe app couldn't see it. Add the app to the security level to protect such work items from now on.
"… restricted comment(s) were not restored"Add the app to the role or group, or copy the comment from the recycle bin.
"Undelete license inactive"A site admin renews the app under Apps → Manage apps. While the license is inactive, no new copies are taken.

Still stuck? Contact support.