getWorklogsForIds method
Returns worklog details for a list of worklog IDs.
The returned list of worklogs is limited to 1000 items.
Permissions required: Permission to access Jira, however, worklogs are only returned where either of the following is true:
- the worklog is set as Viewable by All Users.
- the user is a member of a project role or group with permission to view the worklog.
Implementation
Future<List<Worklog>> getWorklogsForIds(
{String? expand, required WorklogIdsRequestBean body}) async {
return (await _client.send(
'post',
'rest/api/3/worklog/list',
queryParameters: {
if (expand != null) 'expand': expand,
},
body: body.toJson(),
) as List<Object?>)
.map((i) => Worklog.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}