addScreenTab method

Future<ScreenableTab> addScreenTab({
  1. required int screenId,
  2. required ScreenableTab body,
})

Creates a tab for a screen.

Permissions required: Administer Jira global permission.

Implementation

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