UNPKG

@esm-js/jira.js

Version:

A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.

78 lines (77 loc) 3.09 kB
export interface GetWorkflowsPaginated { /** The index of the first item to return in a page of results (page offset). */ startAt?: number; /** The maximum number of items to return per page. */ maxResults?: number; /** * The name of a workflow to return. To include multiple workflows, provide an ampersand-separated list. For example, * `workflowName=name1&workflowName=name2`. */ workflowName?: string[]; /** * Use [expand](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#expansion) to include additional * information in the response. This parameter accepts a comma-separated list. Expand options include: * * - `transitions` For each workflow, returns information about the transitions inside the workflow. * - `transitions.rules` For each workflow transition, returns information about its rules. Transitions are included * automatically if this expand is requested. * - `transitions.properties` For each workflow transition, returns information about its properties. Transitions are * included automatically if this expand is requested. * - `statuses` For each workflow, returns information about the statuses inside the workflow. * - `statuses.properties` For each workflow status, returns information about its properties. Statuses are included * automatically if this expand is requested. * - `default` For each workflow, returns information about whether this is the default workflow. * - `schemes` For each workflow, returns information about the workflow schemes the workflow is assigned to. * - `projects` For each workflow, returns information about the projects the workflow is assigned to, through workflow * schemes. * - `hasDraftWorkflow` For each workflow, returns information about whether the workflow has a draft version. * - `operations` For each workflow, returns information about the actions that can be undertaken on the workflow. */ expand?: | 'transitions' | 'transitions.rules' | 'transitions.properties' | 'statuses' | 'statuses.properties' | 'default' | 'schemes' | 'projects' | 'hasDraftWorkflow' | 'operations' | ( | 'transitions' | 'transitions.rules' | 'transitions.properties' | 'statuses' | 'statuses.properties' | 'default' | 'schemes' | 'projects' | 'hasDraftWorkflow' | 'operations' )[] | string | string[]; /** String used to perform a case-insensitive partial match with workflow name. */ queryString?: string; /** * [Order](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#ordering) the results by a field: * * - `name` Sorts by workflow name. * - `created` Sorts by create time. * - `updated` Sorts by update time. */ orderBy?: | 'name' | '-name' | '+name' | 'created' | '-created' | '+created' | 'updated' | '+updated' | '-updated' | string; /** Filters active and inactive workflows. */ isActive?: boolean; }