List of Task along with Task variables in one call

Hello All,

I’m looking for rest api or any other options to get list of all the tasks assigned to given user along with task variables. Right now using “/engine-rest/task?assignee={userName}” to get the task assigned to the given user but it only returns the task details doesn’t include the variables that are part of this task so I have to make another rest call “/engine-rest/task/{taskID}/variables” to get the task variables for each assigned task, trying to see if I can get both in one call.

We are using custom UI which makes service call to get the task assigned to the logged in user and display task details along with variables value that are submitted when the process was initiated.

Thank you for your help.