deleteProjectRole method
Deletes a project role. You must specify a replacement project role if you wish to delete a project role that is in use.
Permissions required: Administer Jira global permission.
Implementation
Future<void> deleteProjectRole({required int id, int? swap}) async {
await _client.send(
'delete',
'rest/api/3/role/{id}',
pathParameters: {
'id': '$id',
},
queryParameters: {
if (swap != null) 'swap': '$swap',
},
);
}