Function: createExternalLinkedTeam()
ts
function createExternalLinkedTeam(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
creatorId?: string | null;
description: string;
displayName: string;
externalReference?: | {
[key: string]: unknown;
id: string;
source: string & object | "ATLASSIAN_GROUP" | "HRIS";
}
| null;
organizationId: string;
state: string & object | "ACTIVE" | "ARCHIVED";
teamId: string;
teamType: | string & object
| "EXTERNAL"
| "OPEN"
| "MEMBER_INVITE"
| "ORG_ADMIN_MANAGED";
userPermissions: {
[key: string]: unknown;
ADD_MEMBERS: boolean;
DELETE_TEAM: boolean;
REMOVE_MEMBERS: boolean;
UPDATE_TEAM: boolean;
};
}>;Defined in: src/teams/api/externalTeams.ts:9
Creates an external linked team, and membership will be synced with the external reference.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { description: string; externalReference: { id: string; source: string & object | "ATLASSIAN_GROUP"; }; orgId: string; siteId?: string | null; } | - |
parameters.description | string | - |
parameters.externalReference? | { id: string; source: string & object | "ATLASSIAN_GROUP"; } | - |
parameters.externalReference.id? | string | - |
parameters.externalReference.source? | string & object | "ATLASSIAN_GROUP" | - |
parameters.orgId? | string | The ID of the organisation the team is to be created under. |
parameters.siteId? | string | null | [Deprecated] Omitting siteId is deprecated. With the introduction of Units, orgId alone is no longer sufficient to resolve the scope of teams. Always provide a valid siteId to ensure this operation continues to work in the future. |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; creatorId?: string | null; description: string; displayName: string; externalReference?: | { [key: string]: unknown; id: string; source: string & object | "ATLASSIAN_GROUP" | "HRIS"; } | null; organizationId: string; state: string & object | "ACTIVE" | "ARCHIVED"; teamId: string; teamType: | string & object | "EXTERNAL" | "OPEN" | "MEMBER_INVITE" | "ORG_ADMIN_MANAGED"; userPermissions: { [key: string]: unknown; ADD_MEMBERS: boolean; DELETE_TEAM: boolean; REMOVE_MEMBERS: boolean; UPDATE_TEAM: boolean; }; }>