How do you retrieve the list of options for a non-custom field like versions using the rest API?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.