Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you