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
- About a minute after a work item is created or changed, the app stores a compressed copy of it: fields, description, comments, links and the names of its attachments.
- When the work item is deleted, its copy moves into the recycle bin, with who deleted it and when.
- Work items that never changed since the app was installed have no copy yet. If one of them is deleted, the recycle bin still lists it, with the basic fields Jira sends when it deletes an item (summary, type, status, people, dates and fix versions).
3. The recycle bin
- Jira admins: Jira settings → Apps → Recycle bin shows deleted work items of every project, and the settings.
- Project admins: Project settings → Recycle bin shows the deleted work items of that project.
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
- Select one or more work items in the recycle bin, or open one and select Restore.
- The restore runs in the background; the list shows Restored as ABC-123 when it is done.
What comes back:
- the fields on the project's create screen (summary, description, priority, labels, components, versions, dates, people and custom fields);
- the status, when the workflow has a direct transition to it;
- comments, each starting with Originally posted by … on …, with their original visibility;
- links to work items that still exist (or are restored together), and sub-tasks under their parent when both are restored;
- a last comment saying which work item it replaces, who deleted it and who restored it.
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:
- Restricted comments: in Project settings → People (or Access), add the app's user to the role, for example Administrators. Search for Undelete; the app appears as Undelete: Restore Deleted Work Items for Jira.
- Work items with a security level: in the project's issue security scheme, add the app (or the atlassian-addons-project-access project role, which apps belong to) to each security level whose work items should be protected.
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:
- how long deleted work items are kept: 7 to 365 days (30 by default). After that they are removed for good, once a day;
- projects to leave out: their work items are not copied and can't be restored.
A Jira admin can also delete permanently a single entry from its detail view.
7. Permissions and data
| Permission | Why the app needs it |
|---|---|
read:jira-work | Read work items to keep their copies, and check that you are a Jira or project admin. |
write:jira-work | Create the work item again when you restore it, with its comments and links. |
read:jira-user | Write the names of the original authors in restored comments (display names only). |
storage:app | Keep the copies and the recycle bin in Forge storage. |
- Copies are stored in Atlassian's Forge storage, in the same data residency location as your site. Nothing is sent outside Atlassian.
- People are stored as Atlassian account IDs only.
- Deleted work items that had a security level are visible only to Jira admins in the recycle bin; project admins see that such an item was deleted, but not its content.
- Restored people are not @mentioned, so nobody is notified again when a work item is restored.
See the privacy policy and security statement.
8. Limits
- Up to 500 comments are kept per work item (the latest ones); very large work items keep fewer, and the detail view says so.
- Up to 50 work items per restore.
- Copies are taken about a minute after a change; a work item deleted within that minute may be restored without its latest change.
- Like every Forge app, the app is subject to Atlassian platform quotas and rate limits. Very large bulk changes are copied gradually.
9. Troubleshooting
| What you see | What 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 bin | The 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.