setWorklogProperty method

Future setWorklogProperty({
  1. required String issueIdOrKey,
  2. required String worklogId,
  3. required String propertyKey,
  4. required dynamic body,
})

Sets the value of a worklog property. Use this operation to store custom data against the worklog.

The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.

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.

Implementation

Future<dynamic> setWorklogProperty(
    {required String issueIdOrKey,
    required String worklogId,
    required String propertyKey,
    required dynamic body}) async {
  return await _client.send(
    'put',
    'rest/api/3/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey}',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
      'worklogId': worklogId,
      'propertyKey': propertyKey,
    },
    body: body,
  );
}