rankEpics method

Future<void> rankEpics({
  1. required String epicIdOrKey,
  2. required Map<String, dynamic> body,
})

Moves (ranks) an epic before or after a given epic.

If rankCustomFieldId is not defined, the default rank field will be used.

Note: This operation does not work for epics in next-gen projects.

Implementation

Future<void> rankEpics(
    {required String epicIdOrKey, required Map<String, dynamic> body}) async {
  await _client.send(
    'put',
    'rest/agile/1.0/epic/{epicIdOrKey}/rank',
    pathParameters: {
      'epicIdOrKey': epicIdOrKey,
    },
    body: body,
  );
}