Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket REST API branches?filterText does not find branches under certain cirmumstances

Peter Freeman May 4, 2020

We have a branch structure with information encoded similar to this:

feature/v1.abc12345.67890

We would like to use the Bitbucket REST API on our server to find this branch based on the 5 digit number.

Searching for 12345 does not work:

https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=12345

Searching for 67890 does work:

https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=67890

Adding context back to preceding period (abc12345) does work:

https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=abc12345

Other observations:

It seems like the filter text parses on special characters like: / . -

Then it will incrementally search from left to right.

Here are some more examples that will find that branch:

  • feat
  • ab
  • v
  • .abc12345
  • v1.abc123
  • 678

Here are some more examples that will not find that branch

  • ture
  • bc12345
  • 7890
  • 1.abc12345

 

Is this a bug?

If it is a bug, can it be fixed?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events