Task's BusinessKey

Dear Camunders,

just want to ask whether it is possible somehow get businessKey of a task via REST API?

Thank you

edit: I am using 7.9ee version

M.

I believe, via rest you can get process instance id and then get business key from the process instance.

yep, that’s the way :+1:

yes, unfortunately in case you have a lot of process instances with different businessKeys then it is difficult to pick the right one.

So far my not the best solution is to get process-instanceId for tasks as following
http://XXXX.8096/engine-rest/task?dueBefore=2018-07-24T14:42:45.546UTC+00:00&taskDefinitionKey=Task_XXXX

and afterwards extract businessKey as below:
http://XXXX:8096/engine-rest/history/process-instance/c76e72ca-8e67-11e8-9812-0242ac110016

Maybe there is a better way.

Thank you