Open wetjenk opened 3 years ago
Hi @wetjenk , Could you share a version of Jira? or you meant it's only wrapper level ?
Cheers, Gonchik
hi, not sure what you mean exactly?
using version 3.13.0 of atlassian-python-api calling to Atlassian Jira Project Management Software (v8.15.1#815002-sha1:9ca7b02)
the function the wrapper is calling seems to not work afaik
hope that helps?
The status parameter for the Jira wrapper for get_project_versions_paginated is supposed to accept a list of statuses, and that is what its documentation indicates. This would match the status parameter for the Jira API call, as it accepts a list.
However in the Jira class implementation, the status parameter is being treated as a string, its value is validated to be in a list of the valid values, and then it is put into a list:
if status in ["released", "unreleased", "archived"]:
params["status"] = status
This ends up returning all versions because the if statement will always be False when the caller passes in a list.
What it needs to do instead if status is not None:
Validate each value in the status list passed in by the caller and create a list of the resulting valid values to pass to the API call.
This should return only unreleased versions. but it only returns released versions. Problem does not occur in 3.9
cheers