Function: createStatuses()
ts
function createStatuses(
client,
parameters,
options?
): Promise<object[]>;Defined in: src/cloud/api/status.ts:55
Creates statuses for a global or project scope.
Permissions required:
- Administer projects project permission.
- Administer Jira project permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { scope: { project?: { id: string; }; type: string & object | "PROJECT" | "GLOBAL"; }; statuses: object[]; } | - |
parameters.scope | { project?: { id: string; }; type: string & object | "PROJECT" | "GLOBAL"; } | - |
parameters.scope.project? | { id: string; } | - |
parameters.scope.project.id? | string | The ID of the project. |
parameters.scope.type? | string & object | "PROJECT" | "GLOBAL" | The scope of the status. GLOBAL for company-managed projects and PROJECT for team-managed projects. |
parameters.statuses? | object[] | Details of the statuses being created. |
options? | RequestOptions | - |
Returns
Promise<object[]>