setFavouriteForFilter method
Add a filter as a favorite for the user.
Permissions required: Permission to access Jira, however, the user can only favorite:
- filters owned by the user.
- filters shared with a group that the user is a member of.
- filters shared with a private project that the user has Browse projects project permission for.
- filters shared with a public project.
- filters shared with the public.
Implementation
Future<Filter> setFavouriteForFilter(
{required int id, String? expand}) async {
return Filter.fromJson(await _client.send(
'put',
'rest/api/3/filter/{id}/favourite',
pathParameters: {
'id': '$id',
},
queryParameters: {
if (expand != null) 'expand': expand,
},
));
}