Get list of fields in trash bin?

@MaciejStanuch,

Referencing your post here: New REST APIs for Custom Fields released!

Is there a way to get a list of fields that are in the trash bin? I currently grab a list of fields using the “get fields paginated” endpoint. But it does not return fields in the bin. My goal is to get a list of fields in the bin to allow the user to select which ones to restore using the new endpoint.

Let me know if I am missing something to retrieve the desired bin list. Thanks.

Hello @LorenzoPhillips

The Jira Cloud REST API currently does not have an endpoint that returns the IDs of custom fields that are in the trash (refer to JRACLOUD-78382).

Currently, you can only achieve that outcome using the web GUI.

Roger that. Just wanted to make sure I wasn’t crazy and missing something. It’s a bit odd to me that we get the restore function without being able to get a listing but nevertheless, it a good addition that will enhance my app when getting the bin listing is available. :+1:t5:

Hi @LorenzoPhillips,

the API for retrieving fields that are in the trash is now available, I hope it will be useful to you!

Get fields in trash paginated

Cheers,
Maciej

3 Likes

Rolling out these updates in my app today! And yes, VERY helpful to me in my admin app. :nerd_face:

2 Likes