provider Issue worklogs DELETE
/rest/api/3/issue/{issueIdOrKey}/worklog @utdk/jira
/rest/api/3/issue/{issueIdOrKey}/worklog Bulk delete worklogs
Deletes a list of worklogs from an issue. This is an experimental API with limitations:
* You can't delete more than 5000 worklogs at once.
* No notifications will be sent for deleted worklogs.
Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see [Configuring time tracking](https://confluence.atlassian.com/x/qoXKM).
**[Permissions](#permissions) required:**
* *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project containing the issue.
* If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue.
* *Delete all worklogs*[ project permission](https://confluence.atlassian.com/x/yodKLg) to delete any worklog.
* If any worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.
- issueIdOrKey path required
- The ID or key of the issue.
- string
- adjustEstimate query
- Defines how to update the issue's time estimate, the options are: * `leave` Leaves the estimate unchanged. * `auto` Reduces the estimate by the aggregate value of `timeSpent` across all worklogs being deleted.
- enum: leave, auto
- overrideEditableFlag query
- Whether the work log entries should be removed to the issue even if the issue is not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with admin permission can use this flag.
- boolean
Try it
Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import jira from '@utdk/jira';
await jira.bulkdeleteworklogs({
"adjustEstimate": "auto",
"overrideEditableFlag": false
})