getAvailableScreenFields method
Returns the fields that can be added to a tab on a screen.
Permissions required: Administer Jira global permission.
Implementation
Future<List<ScreenableField>> getAvailableScreenFields(int screenId) async {
return (await _client.send(
'get',
'rest/api/3/screens/{screenId}/availableFields',
pathParameters: {
'screenId': '$screenId',
},
) as List<Object?>)
.map((i) =>
ScreenableField.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}