getWorklog method
Returns 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.
- If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.
Implementation
Future<Worklog> getWorklog(
{required String issueIdOrKey,
required String id,
String? expand}) async {
return Worklog.fromJson(await _client.send(
'get',
'rest/api/3/issue/{issueIdOrKey}/worklog/{id}',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
'id': id,
},
queryParameters: {
if (expand != null) 'expand': expand,
},
));
}