GET /rest/api/2/field/search/trashed

Returns a paginated list of fields in the trash. The list may be restricted to fields whose field name or description partially match a string.

Only custom fields can be queried, type must be set to custom.

Permissions required: Administer Jira global permission.

Servers

Query parameters

Name Type Required Description
id[] Array No
startAt Integer No

The index of the first item to return in a page of results (page offset).

Default value: 0

query String No

String used to perform a case-insensitive partial match with field names or descriptions.

maxResults Integer No

The maximum number of items to return per page.

Default value: 50

orderBy String No

Order the results by a field:

  • name sorts by the field name
  • trashDate sorts by the date the field was moved to the trash
  • plannedDeletionDate sorts by the planned deletion date
expand String No

Possible values:

  • "+trashDate"
  • "-projectsCount"
  • "plannedDeletionDate"
  • "projectsCount"
  • "name"
  • "-name"
  • "+projectsCount"
  • "-plannedDeletionDate"
  • "+plannedDeletionDate"
  • "-trashDate"
  • "trashDate"
  • "+name"

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.