Skip to main content
Solved

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

  • April 17, 2026
  • 1 reply
  • 15 views

Forum|alt.badge.img+7

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?

Best answer by Servesh

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

Forum|alt.badge.img+7
  • Author
  • Digital Collaborator
  • Answer
  • April 25, 2026

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`