Bulk delete worklog entries

Anika Dertmann November 23, 2022

I have imported some worklog entries via csv. It basically worked fine except that not all durations are interpreted correctly (the importer says I need to import in seconds but inmost cases it seems to be interpreted as hours).

So I now have a bunch of tickets that have way to high values in time spend. I want to delete all worklogs and try a new import once I understand the formatting issue.

I found that I can delete each entry manually. But how can I delete them all?
<clear> in the csv file cannot be parsed and I don't have the option in bulk edit

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2022

Hello @Anika Dertmann 

Welcome to the community.

Do you have the Tempo app installed on your Jira instance?

Without that, there does not appear to be any method to bulk delete worklog entries through the UI.

There is a REST API endpoint for deleting worklogs, but you would have to write code to retrieve the worklogs you want to delete, then cycle through the list deleting them.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-rest-api-3-issue-issueidorkey-worklog-id-delete

Anika Dertmann November 24, 2022

Great thanks for the quick reply. So we will have a look on the API.

Btw I found the issue on our import. It seems that all times that represent full hours are transformed correctly e.g. 3600 to 1h but if there are half ours or anythink else, it's not interpreted correctly.

Sandra Carrillo
Contributor
February 19, 2023

Hi @Trudy Claspill can you help us with this code to deletes worklog? Thanks a lot!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2023

@Sandra Carrillo 

Rather than appending to a Question that already has an accepted Answer, please start a new Question post for the different help you are requesting. Provide details about your scenario such as the criteria you need to use to select the worklogs to be deleted.

Suggest an answer

Log in or Sign up to answer