Hi Otto,
If you invoke your code shown above in the same transaction as the user task, it is not able to retrieve the data of the usertask, because the transaction is not yet committed to the database.
You could mark the servicetask using your code as ‘async:before=true’. This would flush the transaction regarding the usertask to the database and you should be able to get the data then.
Cheers,
Christian