@@ -90,10 +90,10 @@ export class IssueFields {
90
90
* Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
91
91
* for Classic Jira projects. The list can include:
92
92
*
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`
97
97
*
98
98
* Only custom fields can be queried, `type` must be set to `custom`.
99
99
*
@@ -108,10 +108,10 @@ export class IssueFields {
108
108
* Returns a [paginated](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination) list of fields
109
109
* for Classic Jira projects. The list can include:
110
110
*
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`
115
115
*
116
116
* Only custom fields can be queried, `type` must be set to `custom`.
117
117
*
@@ -143,6 +143,51 @@ export class IssueFields {
143
143
return this . client . sendRequest ( config , callback ) ;
144
144
}
145
145
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
+
146
191
/**
147
192
* Updates a custom field.
148
193
*
@@ -175,22 +220,24 @@ export class IssueFields {
175
220
}
176
221
177
222
/**
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).
180
226
*
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).
183
229
*/
184
230
async getContextsForFieldDeprecated < T = Models . PageContext > (
185
231
parameters : Parameters . GetContextsForFieldDeprecated ,
186
232
callback : Callback < T >
187
233
) : Promise < void > ;
188
234
/**
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).
191
238
*
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).
194
241
*/
195
242
async getContextsForFieldDeprecated < T = Models . PageContext > (
196
243
parameters : Parameters . GetContextsForFieldDeprecated ,
0 commit comments