GET /job api: resolving conflit in query by fields and retrieving active jobs