Fixing allowed status to give the next allowed statuses
Get allowed statuses from transistions instead of tasks