Hi all, in my previous question I asked how to use Workflow API to check tasks assigned to a user.
However, I find that the API returns all the tasks. If I have the workflow instance folio and the workflow name, can I directly filter the response to get the information I need? Thank you.
Best answer by Anelle
Hi Bentsui,
I’ve reached out to one of our senior developers. The only parameter available is the State Paramater (All, Allocated, Sleeping, AllocatedAndShared or AllExcludigingOriginator).
Am I correct in saying you are using K2 Five (5.6)? Do you have any Fix Packs installed? Please send me the steps you follow to create the filter. I will then review and will be able to send you an answer.
Yes, I am using K2 Five (5.6). I am not sure what Fix Packs are installed. Could you please tell me where I can check?
Here are the steps that I try to call the Workflow API to get the tasks.
In K2 Management, Go to ‘Workflow REST’.
Click the Swagger URL.
Call the ‘GET /tasks’ API.
Get the response. But the response includes all the tasks and I am looking for parameters that can help me filter the tasks that I need (for example, workflow name, workflow instance folio)
and use the “Using the About Dialog...” section to determine the Fix Pack installed. Send me that Fix Pack number and I’ll check on the same version on my side.
I’ve reached out to one of our senior developers. The only parameter available is the State Paramater (All, Allocated, Sleeping, AllocatedAndShared or AllExcludigingOriginator).