Skip to content

Function: getOrganization() ​

ts
function getOrganization(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  _links?: {
   [key: string]: unknown;
     self?: string;
  };
  created?: {
   [key: string]: unknown;
     epochMillis?: number;
     friendly?: string;
     iso8601?: string;
     jira?: string;
  };
  id?: string;
  name?: string;
  scimManaged?: boolean;
  uuid?: string;
}>;

Defined in: src/serviceDesk/api/organization.ts:93

This method returns details of an organization. Use this method to get organization details whenever your application component is passed an organization ID but needs to display other organization details.

To get organization detail field values which are visible in Jira Service Management, see the Customer Service Management REST API.

Permissions required: Any

Response limitations: Customers can only retrieve organization of which they are members.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ organizationId: number; }-
parameters.organizationIdnumberThe ID of the organization.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; _links?: { [key: string]: unknown; self?: string; }; created?: { [key: string]: unknown; epochMillis?: number; friendly?: string; iso8601?: string; jira?: string; }; id?: string; name?: string; scimManaged?: boolean; uuid?: string; }>