The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events