@@ -90,10 +90,10 @@ export class IssueFields {
9090 * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
9191 * for Classic Jira projects. The list can include:
9292 *
93- * - All fields.
94- * - Specific fields, by defining `id`.
95- * - Fields that contain a string in the field name or description, by defining `query`.
96- * - Specific fields that contain a string in the field name or description, by defining `id` and `query`.
93+ * - All fields
94+ * - Specific fields, by defining `id`
95+ * - Fields that contain a string in the field name or description, by defining `query`
96+ * - Specific fields that contain a string in the field name or description, by defining `id` and `query`
9797 *
9898 * Only custom fields can be queried, `type` must be set to `custom`.
9999 *
@@ -108,10 +108,10 @@ export class IssueFields {
108108 * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
109109 * for Classic Jira projects. The list can include:
110110 *
111- * - All fields.
112- * - Specific fields, by defining `id`.
113- * - Fields that contain a string in the field name or description, by defining `query`.
114- * - Specific fields that contain a string in the field name or description, by defining `id` and `query`.
111+ * - All fields
112+ * - Specific fields, by defining `id`
113+ * - Fields that contain a string in the field name or description, by defining `query`
114+ * - Specific fields that contain a string in the field name or description, by defining `id` and `query`
115115 *
116116 * Only custom fields can be queried, `type` must be set to `custom`.
117117 *
@@ -143,6 +143,51 @@ export class IssueFields {
143143 return this . client . sendRequest ( config , callback ) ;
144144 }
145145
146+ /**
147+ * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
148+ * in the trash. The list may be restricted to fields whose field name or description partially match a string.
149+ *
150+ * Only custom fields can be queried, `type` must be set to `custom`.
151+ *
152+ * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
153+ * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
154+ */
155+ async getTrashedFieldsPaginated < T = Models . PageField > (
156+ parameters : Parameters . GetTrashedFieldsPaginated | undefined ,
157+ callback : Callback < T >
158+ ) : Promise < void > ;
159+ /**
160+ * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
161+ * in the trash. The list may be restricted to fields whose field name or description partially match a string.
162+ *
163+ * Only custom fields can be queried, `type` must be set to `custom`.
164+ *
165+ * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
166+ * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
167+ */
168+ async getTrashedFieldsPaginated < T = Models . PageField > (
169+ parameters ?: Parameters . GetTrashedFieldsPaginated ,
170+ callback ?: never
171+ ) : Promise < T > ;
172+ async getTrashedFieldsPaginated < T = Models . PageField > (
173+ parameters ?: Parameters . GetTrashedFieldsPaginated ,
174+ callback ?: Callback < T > ,
175+ ) : Promise < void | T > {
176+ const config : RequestConfig = {
177+ url : '/rest/api/2/field/search/trashed' ,
178+ method : 'GET' ,
179+ params : {
180+ startAt : parameters ?. startAt ,
181+ maxResults : parameters ?. maxResults ,
182+ id : parameters ?. id ,
183+ query : parameters ?. query ,
184+ orderBy : parameters ?. orderBy ,
185+ } ,
186+ } ;
187+
188+ return this . client . sendRequest ( config , callback ) ;
189+ }
190+
146191 /**
147192 * Updates a custom field.
148193 *
@@ -175,22 +220,24 @@ export class IssueFields {
175220 }
176221
177222 /**
178- * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of the
179- * contexts a field is used in. Deprecated, use [ Get custom field contexts](#api-rest-api-2-field-fieldId-context-get).
223+ * @deprecated Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination)
224+ * list of the contexts a field is used in. Deprecated, use [ Get custom field
225+ * contexts](#api-rest-api-2-field-fieldId-context-get).
180226 *
181- * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
182- * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
227+ * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
228+ * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
183229 */
184230 async getContextsForFieldDeprecated < T = Models . PageContext > (
185231 parameters : Parameters . GetContextsForFieldDeprecated ,
186232 callback : Callback < T >
187233 ) : Promise < void > ;
188234 /**
189- * Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of the
190- * contexts a field is used in. Deprecated, use [ Get custom field contexts](#api-rest-api-2-field-fieldId-context-get).
235+ * @deprecated Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination)
236+ * list of the contexts a field is used in. Deprecated, use [ Get custom field
237+ * contexts](#api-rest-api-2-field-fieldId-context-get).
191238 *
192- * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
193- * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
239+ * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
240+ * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
194241 */
195242 async getContextsForFieldDeprecated < T = Models . PageContext > (
196243 parameters : Parameters . GetContextsForFieldDeprecated ,
0 commit comments