Unable to filter branches using api.

Issue #13946 closed
Greg Drozd
created an issue

Hello.

When I try to run this query:

"/2.0/repositories/<ACCOUNT>/<PROJECT>/refs/branches?q=type%3D%22branch%22+and++name%3D%22branch1%22++OR++name%3D%22branch2%22+&format=json"

I am getting this:

string(146) "{"type": "error", "error": {"message": "unsupported operand type(s) for |: 'function' and 'Condition'", "id": "ac110aa5597940ee89b1030cda770a82"}}"

It works fine for one branch:

/2.0/repositories/<ACCOUNT>/<PROJECT>/refs/branches?q=type%3D%22branch%22+and++name%3D%22branch1%22+&format=json

According to documentation I should be able to do it: https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering#query-ref

Thank you and have a nice day.

Comments (7)

  1. Log in to comment