Skip to content

Atlassian: Get fields in trash paginated

Atlassian issueFields.getTrashedFieldsPaginated: arguments, response, policy and SDK examples.

← Issue fields operations · Get started

Operation atlassian.gettrashedfieldspaginated

Provider route: GET /{cloudId}/rest/api/3/field/search/trashed. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["issueFields"]["getTrashedFieldsPaginated"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.issueFields.getTrashedFieldsPaginated(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.issue_fields.get_trashed_fields_paginated(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
queryobjectOptionalAdditional keys: not allowed
query.startAtintegerOptionalDefault: 0
Format: int64
query.maxResultsintegerOptionalDefault: 50
Format: int32
query.idarrayOptionalUnique items: true
query.id[]stringEach itemDefault:
query.querystringOptional
query.expandstringOptionalOne of: name, -name, +name, trashDate, -trashDate, +trashDate, plannedDeletionDate, -plannedDeletionDate, +plannedDeletionDate, projectsCount, -projectsCount, +projectsCount
query.orderBystringOptional

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get fields paginated — response body

Referenced models: Get fields paginated — response body

Get fields paginated — response body
FieldTypePresenceDescription and constraints
$objectRootA page of items.
isLastJSONOptional
isLast (anyOf 1)booleanAlternativeWhether this is the last page.
Read only: true
isLast (anyOf 2)nullAlternative
maxResultsJSONOptional
maxResults (anyOf 1)JSONAlternative
maxResults (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of items that could be returned.
Format: int32
Read only: true
maxResults (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
maxResults (anyOf 2)nullAlternative
nextPageJSONOptional
nextPage (anyOf 1)stringAlternativeIf there is another page of results, the URL of the next page.
Format: uri
Read only: true
nextPage (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL of the page.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
startAtJSONOptional
startAt (anyOf 1)JSONAlternative
startAt (anyOf 1) (anyOf 1)integerAlternativeThe index of the first item returned.
Format: int64
Read only: true
startAt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
startAt (anyOf 2)nullAlternative
totalJSONOptional
total (anyOf 1)JSONAlternative
total (anyOf 1) (anyOf 1)integerAlternativeThe number of items returned.
Format: int64
Read only: true
total (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total (anyOf 2)nullAlternative
valuesJSONOptional
values (anyOf 1)arrayAlternativeThe list of items.
Read only: true
values (anyOf 1)[]ModelEach itemExpand Get fields paginated — response body — values The list of items item
values (anyOf 2)nullAlternative

Referenced models: Get fields paginated — response body — values The list of items item

Get fields paginated — response body — values The list of items item
FieldTypePresenceDescription and constraints
$objectRootDetails of a field.
contextsCountJSONOptional
contextsCount (anyOf 1)JSONAlternative
contextsCount (anyOf 1) (anyOf 1)integerAlternativeNumber of contexts where the field is used.
Format: int64
contextsCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
contextsCount (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the field.
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the field.
id (anyOf 2)nullAlternative
isLockedJSONOptional
isLocked (anyOf 1)booleanAlternativeWhether the field is locked.
isLocked (anyOf 2)nullAlternative
isUnscreenableJSONOptional
isUnscreenable (anyOf 1)booleanAlternativeWhether the field is shown on screen or not.
isUnscreenable (anyOf 2)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeThe key of the field.
key (anyOf 2)nullAlternative
lastUsedJSONOptional
lastUsed (anyOf 1)ModelAlternativeExpand Get fields paginated — response body — values The list of items item last Used Information about the most recent use of a field
lastUsed (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the field.
name (anyOf 2)nullAlternative
projectsCountJSONOptional
projectsCount (anyOf 1)JSONAlternative
projectsCount (anyOf 1) (anyOf 1)integerAlternativeNumber of projects where the field is used.
Format: int64
projectsCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
projectsCount (anyOf 2)nullAlternative
schemaJSONOptional
schema (anyOf 1)ModelAlternativeExpand Create custom field — response body — schema The schema of a field
schema (anyOf 2)nullAlternative
screensCountJSONOptional
screensCount (anyOf 1)JSONAlternative
screensCount (anyOf 1) (anyOf 1)integerAlternativeNumber of screens where the field is used.
Format: int64
screensCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
screensCount (anyOf 2)nullAlternative
searcherKeyJSONOptional
searcherKey (anyOf 1)stringAlternativeThe searcher key of the field. Returned for custom fields.
searcherKey (anyOf 2)nullAlternative
stableIdJSONOptional
stableId (anyOf 1)stringAlternativeThe stable ID of the field.
stableId (anyOf 2)nullAlternative
translatedDescriptionJSONOptional
translatedDescription (anyOf 1)stringAlternativeThe translated (i18n) description of the field for the current locale. Returned for custom fields.
translatedDescription (anyOf 2)nullAlternative
translatedNameJSONOptional
translatedName (anyOf 1)stringAlternativeThe translated (i18n) name of the field for the current locale. Returned for custom fields.
translatedName (anyOf 2)nullAlternative
typeDisplayNameJSONOptional
typeDisplayName (anyOf 1)stringAlternativeThe display name of the field type
typeDisplayName (anyOf 2)nullAlternative

Referenced models: Get fields paginated — response body — values The list of items item last Used Information about the most recent use of a field, Create custom field — response body — schema The schema of a field

Get fields paginated — response body — values The list of items item last Used Information about the most recent use of a field
FieldTypePresenceDescription and constraints
$objectRootInformation about the most recent use of a field.
typeJSONOptional
type (anyOf 1)stringAlternativeLast used value type:

* *TRACKED*: field is tracked and a last used date is available.
* *NOT\_TRACKED*: field is not tracked, last used date is not available.
* *NO\_INFORMATION*: field is tracked, but no last used date is available.
Known values: TRACKED, NOT_TRACKED, NO_INFORMATION
type (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)JSONAlternative
value (anyOf 1) (anyOf 1)stringAlternativeThe date when the value of the field last changed.
value (anyOf 1) (anyOf 2)integerAlternative
value (anyOf 2)nullAlternative
Create custom field — response body — schema The schema of a field
FieldTypePresenceDescription and constraints
$objectRootThe schema of a field.
configurationJSONOptional
configuration (anyOf 1)objectAlternativeIf the field is a custom field, the configuration of the field.
Read only: true
Additional keys: see wildcard field
configuration (anyOf 1).*JSONAdditional keysRead only: true
configuration (anyOf 2)nullAlternative
customJSONOptional
custom (anyOf 1)stringAlternativeIf the field is a custom field, the URI of the field.
Read only: true
custom (anyOf 2)nullAlternative
customIdJSONOptional
customId (anyOf 1)JSONAlternative
customId (anyOf 1) (anyOf 1)integerAlternativeIf the field is a custom field, the custom ID of the field.
Format: int64
Read only: true
customId (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
customId (anyOf 2)nullAlternative
itemsJSONOptional
items (anyOf 1)stringAlternativeWhen the data type is an array, the name of the field items within the array.
Read only: true
items (anyOf 2)nullAlternative
systemJSONOptional
system (anyOf 1)stringAlternativeIf the field is a system field, the name of the field.
Read only: true
system (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe data type of the field.
Read only: true
type (anyOf 2)nullAlternative

SDK function policy ID: atlassian.gettrashedfieldspaginated. Catalog operation: gettrashedfieldspaginated. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["read:jira-work"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.