DELETE /rest/api/2/issue/{issueIdOrKey}/worklog

Deletes a list of worklogs from an issue. This is an experimental API with limitations:

Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking.

Permissions required:

Servers

Path parameters

Name Type Required Description
issueIdOrKey String Yes

The ID or key of the issue.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
overrideEditableFlag Boolean No

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.

Default value: false

adjustEstimate String No

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.

Possible values:

  • "leave"
  • "auto"

Default value: "auto"

Request body fields

Name Type Required Description
ids[] Array Yes

A list of worklog IDs.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.