Content
You are here:
API: Filtering Work packages with Versions
Added by Marco Kuppinger over 2 years ago
Hello,
I'm trying to fetch workpackages with specific Versions via the API/V3.
The request is:
https://<servername>/api/v3/work_packages?filters=%5B%7B%22version%22%3A%7B%22operator%22%3A%22=%22%2C%22values%22%3A%5B%221%22%5D%7D%7D%5D
orĀ
https://<servername>/api/v3/work_packages?filters=[{"version":{"operator":"=","values":["1"]}}]
It is always returned with status 400:
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Version filter has invalid values."
}
How do I provide the correct filter values?
Thanks