attempt at refactoring status finder for tasks,ticket