Skip to main content
Digital Collaborator
Apr 17, 2026 12:55 PM UTC
Solved

How to get the task that was assigned in a workflow using api?

I start a workflow using a POST request to /v2/{accountId}/workflows in an eform. I need to redirect the user to the task that was assigned to the user from the workflow. How can I achieve this?

ServeshAnswer
Digital Collaborator
Apr 25, 2026 5:27 AM UTC

Got it working my requesting the workitems of the current user and redirecting to the workflow of the first item.

const memberId = Atlas.userId

const workitemsUrl = `${clm.apiUrl}/v2/${clm.accountId}/members/${memberId}/workitems?sortproperty=createddate&sortdirection=desc`

 

1 reply

ServeshDigital CollaboratorAuthorAnswer
Digital Collaborator
Apr 25, 2026 5:27 AM UTC

Got it working my requesting the workitems of the current user and redirecting to the workflow of the first item.

const memberId = Atlas.userId

const workitemsUrl = `${clm.apiUrl}/v2/${clm.accountId}/members/${memberId}/workitems?sortproperty=createddate&sortdirection=desc`

 

Translate