addScreenTabField method

Future<ScreenableField> addScreenTabField({
  1. required int screenId,
  2. required int tabId,
  3. required AddFieldBean body,
})

Adds a field to a screen tab.

Permissions required: Administer Jira global permission.

Implementation

Future<ScreenableField> addScreenTabField(
    {required int screenId,
    required int tabId,
    required AddFieldBean body}) async {
  return ScreenableField.fromJson(await _client.send(
    'post',
    'rest/api/3/screens/{screenId}/tabs/{tabId}/fields',
    pathParameters: {
      'screenId': '$screenId',
      'tabId': '$tabId',
    },
    body: body.toJson(),
  ));
}