Get task data with variables

Is there a way to get task data + variables in one request instead of two requests - one for task data and one for variables?

Thanks in advance!