Update Worklog

PUT {{baseUrl}}/rest/api/3/issue/:issueIdOrKey/worklog/:id?notifyUsers=true&adjustEstimate=auto&newEstimate=<string>&expand=&overrideEditableFlag=false

Updates a worklog.

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:

  • Browse projects project permission for the project that the issue is in.
  • If issue-level security is configured, issue-level security permission to view the issue.
  • Edit all worklogs project permission to update any worklog or Edit own worklogs to update worklogs created by the user.
  • If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

Request Params

KeyDatatypeRequiredDescription
notifyUsersbooleanWhether users watching the issue are notified by email.
adjustEstimatestringDefines 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.
  • auto Updates the estimate by the difference between the original and updated value of timeSpent or timeSpentSeconds. | | newEstimate | string | | 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. | | expand | null | | Use expand to include additional information about worklogs in the response. This parameter accepts properties, which returns worklog properties. | | overrideEditableFlag | boolean | | Whether the worklog should be added to the issue even if the issue is not editable. For example, because the issue is closed. Only connect app users with admin permissions can use this flag. |

Request Body

{"visibility"=>{"type"=>"<string>", "value"=>"<string>"}, "started"=>"<dateTime>", "timeSpent"=>"<string>", "timeSpentSeconds"=>"<long>", "properties"=>[{"key"=>"<string>"}, {"key"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000&quot;,&quot;author&quot;:{&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g&quot;,&quot;accountId&quot;:&quot;5b10a2844c20165700ede21g&quot;,&quot;displayName&quot;:&quot;Mia Krystof&quot;,&quot;active&quot;:false},&quot;updateAuthor&quot;:{&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g&quot;,&quot;accountId&quot;:&quot;5b10a2844c20165700ede21g&quot;,&quot;displayName&quot;:&quot;Mia Krystof&quot;,&quot;active&quot;:false},&quot;comment&quot;:{&quot;type&quot;:&quot;doc&quot;,&quot;version&quot;:1,&quot;content&quot;:[{&quot;type&quot;:&quot;paragraph&quot;,&quot;content&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;text&quot;:&quot;I did some work here.&quot;}]}]},&quot;updated&quot;:&quot;2020-12-17T01:45:40.269+0000&quot;,&quot;visibility&quot;:{&quot;type&quot;:&quot;group&quot;,&quot;value&quot;:&quot;jira-developers&quot;},&quot;started&quot;:&quot;2020-12-17T01:45:40.269+0000&quot;,&quot;timeSpent&quot;:&quot;3h 20m&quot;,&quot;timeSpentSeconds&quot;:12000,&quot;id&quot;:&quot;100028&quot;,&quot;issueId&quot;:&quot;10002&quot;}