Problem Definition
When searching for a deployment project using the "After deployment" trigger provided by the After Deployment Trigger for Bamboo app the results might be (unexpectedly) empty.
This does not mean your Bamboo indexes are corrupt, your deployment project no longer exists or you no longer have permissions to access it. The After Deployment Trigger for Bamboo app uses the following Bamboo REST endpoint to search for data:
By default this endpoint will only return the first 12 results when searching for data after typing in at least 3 characters. The problem is that the app does not filter out other results (e.g. plans, plan branches, projects and etc) and instead it only hides them. So if your deployment project is not in the first 12 results when you start searching for it you have to continue typing to narrow the scope of the search otherwise it won't show up in the results.
This is rather confusing and a bit misleading because the search result will be empty until it finds at least one deployment project that matches the expression you're searching for in the first 12 results.
Suggested Solution
Filter out the results of the REST call to look for deployment projects only instead of hiding the other results from the UI.
Workaround
You'll need to keep typing in to narrow down the scope of the search until you find your deployment project.
For example, if you're searching for a deployment project named "This is my deployment project" and you start typing "Thi" but get an empty list it's very likely that your deployment project is not present in the first 12 results of the search. If the first 12 results don't return any deployment projects you'll get an empty list. Try searching for "This is" or "This is my" to see if the deployment project shows up. The more characters you give the more precise the search will be and the higher the chances you'll find your deployment project in the list.