Some tasks were deleted but keeps showing in activity timeline
Asked by Rub?n Barrantes:

Hi Guys,

We have deleted some tasks in Jira but they still showing on the Activity Timeline. How can we resolved that since when we try to make a change we got an error, for example:

Error during updating estimate \[404\] status code: 404, reason phrase: Not Found {}.


Answers:
author: Svitlana Samotis _Reliex_
body: Hi Ruben,

Usually, the system searches for deleted issues and removes them automatically from the background, but it does happen that it misses some of the items. This usually happens when there are a lot of updates in Jira within a short period of time.

You can remove such issues in one of the following ways:

**1.** You can trigger an automatic 'Detect \& Remove Deleted Issues' action so that the system will search for all tickets that are no longer present in Jira and remove them from the Database:

*Configuration-\>Synchronization-\>Refresh issues-\> Detect \& Remove Deleted Issues*

![GbHqzd4_WGm5EwLaHzzn_lVAQXeYnJ1ViA.png](https://community.atlassian.com/t5/image/serverpage/image-id/290431iB4236F7C8F0B9FEE/image-size/large?v=v2&px=999 "GbHqzd4_WGm5EwLaHzzn_lVAQXeYnJ1ViA.png")

**2.** In case the automatic 'Detect \& Remove Deleted Issues' function didn't work, you can still remove such issues manually in*Configuration-\>Issues-\>Maintenance:*

![GNvqXHZ33u4OS5Vg0hqeuzSihfQMXmwAxA.png](https://community.atlassian.com/t5/image/serverpage/image-id/290432iB6A7FBB59B3B45FA/image-size/large?v=v2&px=999 "GNvqXHZ33u4OS5Vg0hqeuzSihfQMXmwAxA.png")

Also, to prevent this from happening again we have introduced a new approach to removing deleted Jira issues \& worklogs. You need to do the following to enable it on your instance:

**1.** Switch on a Custom Functionality in *Configuration-\>Advanced Settings:*  
ENABLE_WEBHOOKS  
![_mnXpbjsMWsWqCOH592NBzKwFDfNAeGZEQ.png](https://community.atlassian.com/t5/image/serverpage/image-id/290433i0D2382570A05341A/image-size/large?v=v2&px=999 "_mnXpbjsMWsWqCOH592NBzKwFDfNAeGZEQ.png")  
**2.** Go to *Configuration-\>Jira Integration-\>Webhooks Config-\>* Add there your email \& [Atlassian Token](https://id.atlassian.com/manage-profile/security/api-tokens):  
![y5k1X1v170lNFHNnzkTlJK2PXnawHO5dBg.png](https://community.atlassian.com/t5/image/serverpage/image-id/290435i59862A6689805751/image-size/large?v=v2&px=999 "y5k1X1v170lNFHNnzkTlJK2PXnawHO5dBg.png")  
**3.** Click to create Webhooks and, you'll see 2 webhooks that's been created:  
![s82xcCsaIxBBtkRZj-gOXJ0kTW4hPtGP6A.png](https://community.atlassian.com/t5/image/serverpage/image-id/290436i0E7C7F29DB5C6E54/image-size/large?v=v2&px=999 "s82xcCsaIxBBtkRZj-gOXJ0kTW4hPtGP6A.png")  
**4.** Voil?, from now on all issues, and worklogs will be removed right after the task has been deleted from your Jira.  
Regards,  
Svitlana ActivityTimeline team

comments: author: Rub?n Barrantes
body: Hi Svitlana, hope you're doing well.

Thanks for the support. We followed the first step but it works partially, so we proceed to combine that one and the second one.

Thanks again.

Good day!


author: John Tester
body: [@Rub?n Barrantes](/t5/user/viewprofilepage/user-id/3578060) Is your platform on-prem? If so I'd consider performing a backround reindex after hours if your a global administrator.

John

comments: author: Rub?n Barrantes
body: Hi John,

Thanks but not, it is not on-prem platform.