Hello, Guilherme.
Looking at the documentation, and as you've mentioned, there's no way to filter the versions with this REST call "/rest/api/2/project/{projectIdOrKey}/versions".
I did some testing here to try to find an endpoint for the GUI version search, Jira uses the following internal REST call to get all the versions:
/rest/projects/1.0/project/LDC/release/allversions
But just like the standard API one, it returns all versions, Jira just filters the result that was already loaded from the API call.
My only suggestion is to use the standard REST call and just filter the result with the "released" field, it will be either "true" or "false".
Kind regards,
Maurício Karas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.