createOrganization method

Future<OrganizationDTO> createOrganization({
  1. required OrganizationCreateDTO body,
})

This method creates an organization by passing the name of the organization.

Permissions required: Service desk administrator or agent. Note: Permission to create organizations can be switched to users with the Jira administrator permission, using the Organization management feature.

Implementation

Future<OrganizationDTO> createOrganization(
    {required OrganizationCreateDTO body}) async {
  return OrganizationDTO.fromJson(await _client.send(
    'post',
    'rest/servicedeskapi/organization',
    body: body.toJson(),
  ));
}