PUT /rest/api/2/field/{fieldId}/context/{contextId}/option/move

Changes the order of custom field options or cascading options in a context.

This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.

Permissions required: Administer Jira global permission.

Servers

Path parameters

Name Type Required Description
fieldId String Yes

The ID of the custom field.

contextId Integer Yes

The ID of the context.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
after String No

The ID of the custom field option or cascading option to place the moved options after. Required if position isn't provided.

customFieldOptionIds[] Array Yes

A list of IDs of custom field options to move. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.

position String No

The position the custom field options should be moved to. Required if after isn't provided.

Possible values:

  • "First"
  • "Last"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.