Delete all worklogs for user (Tempo)

I would like to delete all worklogs for a particular user, but the only way I can think of is deleting records from the database, which is a bit risky since I don't have a full understanding of all Tempo tables. Basically, I could delete all records for that user in table 'worklog' but there are other tables involved such as 'propertyentry' or 'propertystring'. If I knew all of them I could come up with a proper query.

Does anyone have another idea or the right SQL statement to run?



1 answer

Hi Sergio

All the worklogs are in the "worklog" table in the JIRA database. You would need to execute an SQL to delete all the records in bulk. We do not recommend that you do so but you can at your own risk.

This SQL will show you all the worklogs a certain user has after 4-Jul-2013:

select * 
  from worklog
  where author = 'john'
    and startdate > '2013-07-04'
  order by startdate 
Hope this helps

Sverrir Tynes

Tempo support

That doesn't answer to my question. I already knew that so I was asking about other tables involved (for example, the ones that store worklog attributes.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,304 views 12 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you