How do you retrieve the list of options for a non-custom field like versions using the rest API?
Hi @Neil Tuffs _private_,
Welcome to Atlassian Community!
You can do this by using the Get project versions paginated endpoint and you can use a query or return versions based on its status.
Hi and welcome to the Community @Neil Tuffs _private_
The custom field option endpoints won't actually work here. Those are meant for standard select-lists, but Versions are project-level objects, so they use a different set of endpoints.
If you just need the full list of versions for a project, @Mikael Sandberg is right. You should be querying the project versions endpoint directly
However, if you need to know which values are specifically allowed for creating or editing an issue in a certain context, you’ll want to check the field metadata (editmeta) and look at allowedValues.
Basically, for anything version-related, you have to look at project versions rather than field options.
It looks like you're new here. Sign in or register to get started.