I think Rob's suggestion is a good one.

The condition you need for that is (I don't know python api syntax…): 

   ['project','is',project] AND ['ui_category','is','project_overview']