Skip to content

statuses

create

Bulk create statuses

Creates statuses for a global or project scope.

Permissions required:

POST /rest/api/3/statuses

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)

Example:

bash
jr statuses create

delete-by-id

Bulk delete Statuses

Deletes statuses by ID.

Permissions required:

DELETE /rest/api/3/statuses

FlagTypeRequiredDescription
--idstringNoThe list of status IDs. To include multiple IDs, provide an ampersand-separated list. For example, id=10000&id=10001.

Min items 1, Max items 50 |

Example:

bash
jr statuses delete-by-id

get-by-id

Bulk get statuses

Returns a list of the statuses specified by one or more status IDs.

Permissions required:

GET /rest/api/3/statuses

FlagTypeRequiredDescription
--idstringNoThe list of status IDs. To include multiple IDs, provide an ampersand-separated list. For example, id=10000&id=10001.

Min items 1, Max items 50 |

Example:

bash
jr statuses get-by-id

get-by-name

Bulk get statuses by name

Returns a list of the statuses specified by one or more status names.

Permissions required:

GET /rest/api/3/statuses/byNames

FlagTypeRequiredDescription
--namestringNoThe list of status names. To include multiple names, provide an ampersand-separated list. For example, name=nameXX&name=nameYY.

Min items 1, Max items 50 | | --projectId | string | No | The project the status is part of or null for global statuses. |

Example:

bash
jr statuses get-by-name

get-project-issue-type-usages-for

Get issue type usages by status and project

Returns a page of issue types in a project using a given status.

GET /rest/api/3/statuses/{statusId}/project/{projectId}/issueTypeUsages

FlagTypeRequiredDescription
--maxResultsstringNoThe maximum number of results to return. Must be an integer between 1 and 200.
--nextPageTokenstringNoThe cursor for pagination
--projectIdstringYesThe projectId to fetch issue type usages for
--statusIdstringYesThe statusId to fetch issue type usages for

Example:

bash
jr statuses get-project-issue-type-usages-for --projectId <projectId> --statusId <statusId>

get-project-usages-for

Get project usages by status

Returns a page of projects using a given status.

GET /rest/api/3/statuses/{statusId}/projectUsages

FlagTypeRequiredDescription
--maxResultsstringNoThe maximum number of results to return. Must be an integer between 1 and 200.
--nextPageTokenstringNoThe cursor for pagination
--statusIdstringYesThe statusId to fetch project usages for

Example:

bash
jr statuses get-project-usages-for --statusId <statusId>

get-workflow-usages-for

Get workflow usages by status

Returns a page of workflows using a given status.

GET /rest/api/3/statuses/{statusId}/workflowUsages

FlagTypeRequiredDescription
--maxResultsstringNoThe maximum number of results to return. Must be an integer between 1 and 200.
--nextPageTokenstringNoThe cursor for pagination
--statusIdstringYesThe statusId to fetch workflow usages for

Example:

bash
jr statuses get-workflow-usages-for --statusId <statusId>

Search statuses paginated

Returns a paginated list of statuses that match a search on name or project.

Permissions required:

GET /rest/api/3/statuses/search

FlagTypeRequiredDescription
--maxResultsstringNoThe maximum number of items to return per page.
--projectIdstringNoThe project the status is part of or null for global statuses.
--searchStringstringNoTerm to match status names against or null to search for all statuses in the search scope.
--startAtstringNoThe index of the first item to return in a page of results (page offset).
--statusCategorystringNoCategory of the status to filter by. The supported values are: TODO, IN_PROGRESS, and DONE.

Example:

bash
jr statuses search

update

Bulk update statuses

Updates statuses by ID.

Permissions required:

PUT /rest/api/3/statuses

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)

Example:

bash
jr statuses update