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

Deletes a worklog from an issue.

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

This operation can be accessed anonymously.

Permissions required:

Servers

Path parameters

Name Type Required Description
id String Yes

The ID of the worklog.

issueIdOrKey String Yes

The ID or key of the issue.

Query parameters

Name Type Required Description
notifyUsers Boolean No

Whether users watching the issue are notified by email.

Default value: true

newEstimate String No

The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new.

increaseBy String No

The amount to increase the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is manual.

overrideEditableFlag Boolean No

Whether the work log entry should be added 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:

  • new Sets the estimate to a specific value, defined in newEstimate.
  • leave Leaves the estimate unchanged.
  • manual Increases the estimate by amount specified in increaseBy.
  • auto Reduces the estimate by the value of timeSpent in the worklog.

Possible values:

  • "manual"
  • "leave"
  • "auto"
  • "new"

Default value: "auto"

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.