Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I bulk delete worklogs in Jira?

satya23bh March 9, 2020

I want to delete multiple work logs in Jira of all tickets in closed status at the same time. Please help.

2 answers

1 vote
Chris
Contributor
July 12, 2022

You can use JMWE with the following on some kind of event or schedule to delete all of the worklogs on an issue

 

{% for id in issue | worklog | field("id") %}
{{ "/rest/api/3/issue/:issue/worklog/:logID" | callJira(verb="Delete",params={"issue":issue.key,"logID":id}) | dump(2)}}
{% endfor %}
Trevor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 14, 2022

What if I only wanted to delete worklog entries that are more than 30 days old and only for all issues that are resolved (Done)?

İclal Aslan
Contributor
February 11, 2025

hello can you help me to use jmwe to delete worklogs only logged by a certain user? thanks.

0 votes
kimiya majd
Contributor
March 9, 2020

Hi 

At the first write a JQL : 

project="" and status= closed and timespent is not empty 

then in the right above you see tools and select it and in bulk change, select edit issues then in the edit, delete timespent field and save it.

 

ac.png

satya23bh March 11, 2020

Thank you for your answer. But I couldn't find the 'delete timespent' field in the 'edit issues' option.

Like Deleted user likes this

Suggest an answer

Log in or Sign up to answer