How can I find out who and when deleted an issue?
Hello,
We are dealing with a situation of deleted issue in Youtrack. We had quite a few comments added to it by us and a client but then somebody has deleted it.
1. It would be extremely nice to be able to undelete it.
2. I searched all our log files back and forth and can't find a record about who and when deleted it.
3. I tried creating and deleting an issue and I can't even figure out in the logs how can I determine an issue is deleted. There is not obvious record staging "Issue X is deleted"
We are dealing with a situation of deleted issue in Youtrack. We had quite a few comments added to it by us and a client but then somebody has deleted it.
1. It would be extremely nice to be able to undelete it.
2. I searched all our log files back and forth and can't find a record about who and when deleted it.
3. I tried creating and deleting an issue and I can't even figure out in the logs how can I determine an issue is deleted. There is not obvious record staging "Issue X is deleted"
Please sign in to leave a comment.
2&3. Try to find an entry "deleteIssue" in the youtrack.log file.
Looking for "deleteIssue" I can see it only in notifications.log files. There is no record for the issue I'm looking for, though even though I kept all logs since we started working with Youtrack. Users may have removed email notifications and thus there would be no record of it in that log, wouldn't it?
But 'dele' (or 'del') command prefix also is stored in the youtrack.log as 'suggest command' REST call. You can try to find these strings.
I reviewed youtrack.log for 'deleteIssue' and issueID and couldn't find a record for that issue deletion.
I then ran some tests, here are the results
Extracts from the youtrack.log file
... youtrack.log 21 Jan 2014 16:20:50,537 INFO [MainServlet ] [eIds=FzP&noIssuesContext=false&command=del&caret=2] [mzarnitsa@kmionline.com@216.69.207.81] Start processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzP&noIssuesContext=false&command=del&caret=2 21 Jan 2014 16:20:50,668 INFO [MainServlet ] [eIds=FzP&noIssuesContext=false&command=del&caret=2] [mzarnitsa@kmionline.com@216.69.207.81] Finish processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzP&noIssuesContext=false&command=del&caret=2 in 131ms 21 Jan 2014 16:20:51,142 INFO [MainServlet ] [s=FzP&noIssuesContext=false&command=delete&caret=6] [mzarnitsa@kmionline.com@216.69.207.81] Start processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzP&noIssuesContext=false&command=delete&caret=6 21 Jan 2014 16:20:51,157 INFO [MainServlet ] [s=FzP&noIssuesContext=false&command=delete&caret=6] [mzarnitsa@kmionline.com@216.69.207.81] Finish processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzP&noIssuesContext=false&command=delete&caret=6 in 15ms ... ... 21 Jan 2014 16:22:09,943 INFO [MainServlet ] [zG&noIssuesContext=false&command=delete%20&caret=7] [mzarnitsa@kmionline.com@216.69.207.81] Start processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzG&noIssuesContext=false&command=delete%20&caret=7 21 Jan 2014 16:22:09,946 INFO [MainServlet ] [zG&noIssuesContext=false&command=delete%20&caret=7] [mzarnitsa@kmionline.com@216.69.207.81] Finish processing request /rest/command/underlineAndSuggestAndCommands?issueIds=FzG&noIssuesContext=false&command=delete%20&caret=7 in 4ms ... ... 21 Jan 2014 16:22:44,884 INFO [MainServlet ] [/_events?window_id=90 [l.I:methodCall_deleteIssue]] [mzarnitsa@kmionline.com@216.69.207.81] Start processing request /_events?window_id=90 [l.I:methodCall_deleteIssue] 21 Jan 2014 16:22:45,901 INFO [TextIndexManager ] [TextIndexManager ] [] Text index transaction started 21 Jan 2014 16:22:45,905 INFO [MainServlet ] [/_events?window_id=90 [l.I:methodCall_deleteIssue]] [mzarnitsa@kmionline.com@216.69.207.81] Finish processing request /_events?window_id=90 [l.I:methodCall_deleteIssue] in 1021ms ...
All calls recorded differently based on the way how issue was deleted. None of these ways actually make a trail of what issue was deleted.
I'm not sure how one can audit this log. If someone deletes an issue, there is virtually no record of that. I hope this can be fixed soon.
I've also created the request JT-23202.
Thanks