younifyd
Menu

Getalltasks

Get all Tasks

GET/v3/user/assignments

Use it in a workflow

  1. Add a step and choose the Contentstack connector.
  2. Pick the Getalltasks action (under Workflows).
  3. Fill in the fields below, then reference the result from later steps as {{getalltasks.response.data}}.

Request

Query parameters

querystringrequired

Enter the actual query that will be executed to retrieve the tasks. This query should be in JSON format. Example: {"job.publishing_rule.status":0}: retrieves pending approval requests {"type":"workflow_stage"}: retrieve tasks based on Workflow Stages {"job.workflow_stage.uid": "workflow_stage_uid"}: retrieve tasks based on a specific Workflow Stage  {"content_type":"content_type_uid", "type": "publishing_rule"}: retrieve tasks based on multiple conditions

sortstring

Enter the field UID on the basis of which you want to sort your tasks. Example: {"assigned_at": "desc"}, {"content_type": "asc"}, or {"assigned_date": "desc", "locale":"asc"}

limitstring

Enter the maximum number of tasks that you want to retrieve in the response.

skipstring

Enter the number of tasks to be skipped.

Response

Returns 200 with a any. Read it in later steps with {{getalltasks.response.data.<field>}}.

Need more? See the Contentstack guide for connection setup and behaviour shared by every action.