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

Code search within a project doesn't work

Nathaniel.Kelly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2024

I'd like to do a code search within a project. As far as I can see from the docs, this should work:

project:project_name thingToSearchFor

 

But I get no results, even though the "thingToSearchFor" is in a repo, in the project. Does anyone know the magic syntax to get this working? We have hundreds of repo's and many projects, so I really need to be able to limit search to those repo's in the project only.

This is via the https://bitbucket.org/search page...

 

Thanks

 

1 answer

0 votes
Nathaniel.Kelly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2024

Going to answer myself as this isn't explained in the docs... The "project:" modified uses the project short code. So if you go to https://bitbucket.org/yourOrg/workspace/projects then select your project to search in, the URL that it returns will have the short code at the end.
Use this code to then do the code search.

easy eh?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events