getColumns method
Returns the columns configured for a filter. The column configuration is used when the filter's results are viewed in List View with the Columns set to Filter.
This operation can be accessed anonymously.
Permissions required: None, however, column details are only returned for:
- 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<List<ColumnItem>> getColumns(int id) async {
return (await _client.send(
'get',
'rest/api/3/filter/{id}/columns',
pathParameters: {
'id': '$id',
},
) as List<Object?>)
.map((i) => ColumnItem.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}