Spanish Total.js
English
Documentation For AI agents
Contents

Ask two people at once

Use Subtasks to send one request to two reviewers at the same time.

.md Website
On this page

This recipe changes the leave request so that the manager and HR review each request at the same time, each one in a subtask of their own. To let several people decide on the same task instead, see Approvals by several people.

1. Add the Subtasks node

  1. Open the designer of the process.
  2. Remove the connection from Send of Leave request to Approval.
  3. Drag Subtasks onto the canvas and connect Send of Leave request to its input.
  4. Double-click Subtasks. Set Name to Reviews.
  5. With Create task, add two subtasks named Manager and HR.
  6. Set Template subject to Review: {{ value.reason }}.
  7. Select APPLY.

2. Send both subtasks to the approval form

After a moment, the node shows the outputs Manager, HR and Check. Connect Manager and HR to the input No data of Approval, select APPLY, and then Publish in the toolbar. See Process versions.

3. Try it

  1. Start a new leave request in the Inbox.
  2. The Inbox shows two tasks with the subject Review: reason, one for each subtask.
  3. Approve one of them.

About a minute later, Check of the Subtasks node sends the main task with the list of its subtasks; the approved subtask has isclosed: true. Connect Check to the next part of your process, for example Flow components that continue when all subtasks are closed. See Subtasks.

Made in Europe