Skip to content

Tasks

Task rules

Decide a User Task that several people respond to: counts, percentages, majority and two thirds, unanimous and consensus, per-outcome thresholds, qualified approvers (roles, teams, job titles, directory groups, the starter's manager chain), AND / OR, vetoes, approval levels, weighted votes, and explicit handling of ties, abstentions, impossible rules, people who leave, redirects, self-approval and deadlines.

Last updated 4 min read Edit this page on GitHub
On this page

Task rules decide when a User Task that several people respond to is done, and with which outcome. They apply when the step's assignees are set to Everyone gets it (assignees_mode: "everyone"). With task rules set, even a list that resolves to one person or one team is a shared task that the rule decides.

Open the User Task step, choose Task rules and start from a preset, then refine it in the advanced builder. A live sentence describes the rule ("Approved when 2 of Directors choose Approved. If it can no longer be met: Rejected."), and warnings appear when it cannot work, e.g. Only 3 people match Directors; the rule needs 5.

A User Task step assigned to three people and the Accounts payable team with Everyone gets it, and its task rules described in a sentence: rejected as soon as the controller rejects, approved when 2 finance leads approve, otherwise rejected if it can no longer be met
A User Task for several people, decided by task rules.

Presets#

PresetMeans
Any oneThe first response decides.
All must approveEveryone must choose the approve outcome; any other response decides at once ("any reject rejects").
MajorityMore than half of the people decide; a tie follows the tie setting.
N of MN people must approve; rejected once that can no longer happen.
ConsensusEveryone must choose the same outcome; while they disagree it stays open (people can change their response).
N from a groupN people from a role, team or job title must approve — "2 directors or VPs".

How a rule is built#

  • Groups — named sets of qualified responders, each "anyone who matches one of": a person, a role, a team (optionally with its sub-teams), a job title (equals or contains, from the person's profile), a directory group (Entra ID), the starter's manager (or their manager's manager, or anyone up the chain to a level), people managers (anyone with a direct report), or people from a {{variable}}. Groups pick people among the task's assignees: put the directors on the Assign to list too.
  • Decisions — an ordered list "outcome when condition". The first decision whose condition holds decides. A veto is a decision listed first: "Rejected as soon as anyone in Legal chooses Rejected".
  • Conditions — a threshold (a count, a percentage, a majority, two thirds, three quarters or everyone; of the eligible people or of the votes cast, with an optional quorum; optionally weighted; optionally within a group), "the most chosen outcome", "everyone has responded", and AND / OR groups of these, nested.
  • Stages (optional) — approval levels in order. Each person takes part in the first stage whose groups they match; a later stage's people get the task only when that stage opens. A stage passes when its condition holds (counting that stage's people), and the last stage passing decides the stages outcome. Decisions still apply at every stage, so a veto works at any level.
  • Weights (optional) — a group can carry a vote weight (the CFO counts 3); weighted thresholds sum weights.

Edge cases — all explicit#

SettingChoices
When to decideAs soon as a decision holds (default) · only once the outcome can no longer change · once everyone has responded
No-opinion outcomesOutcomes that count as a response but for nothing; they leave the base of percentages unless you keep them in
Changing a responseAllowed until the task is decided (default), or off
Cannot be met any moreKeep waiting (until the due date / an admin) or decide a fallback outcome. When it is already impossible as the task is created: a run-log warning, or fail the step
TiesThe outcome listed first · the latest responder's outcome · a fixed outcome · keep waiting
Someone in several groupsCounts in each group (default) or towards one group only
Self-approvalThe person who started the workflow (and a requester you name, e.g. {{form.requester_email}}) may respond, their response does not count, or they cannot respond
Redirected peopleTake over the original person's groups and weight (default), or count as themselves
People added laterCount by their own groups (default), or not at all
People who leaveWaiting on them stops either way (deactivated, removed); their response keeps counting (default) or is dropped
At the due dateNothing · a fallback outcome · decide on the responses so far · escalate to people (a person, role, the starter's manager…) whose response decides

Early decisions are automatic: once no decision can be reached any more (not enough qualified people left, a unanimous vote broken) the fallback runs straight away instead of waiting for everyone; once the task is decided, the remaining people's work is closed with it. A manager acting on behalf of an assignee responds as that assignee (their groups count). A response that arrives after the decision is refused, recorded in the task's history as not counted.

Seeing where it stands#

The task page and the Process view show the rule's state in plain words, e.g. Approved: 3 of 5 · Legal (Approved): 0 of 1 · waiting on Legal. When it is decided, the history records which condition decided it ("Rejected as soon as anyone in Legal chooses Rejected") with the counts, and the step's next steps can read it as {{rule_decision.condition}}, {{rule_decision.summary}} and {{rule_decision.counts}}.

A capital expenditure task with its rule line: Controller (Rejected) 0 of 1, Finance leads (Approved) 1 of 2, waiting on Controller and Finance leads
Where the rule stands on the task: one finance lead has approved.

Examples#

Purchase over USD 50,000: 2 directors or VPs, Finance can veto, the requester cannot approve their own request:

JSON
{
  "assignees": [{ "type": "role", "id": "director" }, { "type": "role", "id": "vp" }, { "type": "team", "id": "<finance team id>" }],
  "assignees_mode": "everyone",
  "outcomes": ["Approved", "Rejected"],
  "task_rules": {
    "groups": [
      { "id": "leaders", "label": "Directors or VPs", "any_of": [{ "type": "role", "id": "director" }, { "type": "role", "id": "vp" }] },
      { "id": "finance", "label": "Finance", "any_of": [{ "type": "team", "id": "<finance team id>" }] }
    ],
    "decisions": [
      { "outcome": "Rejected", "when": { "type": "threshold", "outcome": "Rejected", "count": 1, "group": "finance" } },
      { "outcome": "Approved", "when": { "type": "threshold", "outcome": "Approved", "count": 2, "group": "leaders" } }
    ],
    "options": {
      "self_approval": "blocked",
      "requester": "{{form.requester_email}}",
      "on_impossible": { "action": "outcome", "outcome": "Rejected" },
      "deadline": { "action": "escalate", "escalate_to": [{ "type": "starter_manager", "level": 2 }] }
    }
  }
}

(3 approvals AND 1 from Legal) OR the CFO approves:

JSON
{ "outcome": "Approved", "when": { "type": "or", "any": [
  { "type": "and", "all": [
    { "type": "threshold", "outcome": "Approved", "count": 3 },
    { "type": "threshold", "outcome": "Approved", "count": 1, "group": "legal" }
  ] },
  { "type": "threshold", "outcome": "Approved", "count": 1, "group": "cfo" }
] } }

Two levels: the manager first, then 2 of the finance committee; a two-thirds majority of the votes cast with a quorum of 4:

JSON
{
  "groups": [
    { "id": "mgr", "label": "Manager", "any_of": [{ "type": "starter_manager" }] },
    { "id": "committee", "label": "Finance committee", "any_of": [{ "type": "job_title", "value": "Committee member", "match": "contains" }] }
  ],
  "decisions": [{ "outcome": "Rejected", "when": { "type": "threshold", "outcome": "Rejected", "count": 1, "group": "mgr" } }],
  "stages": [
    { "label": "Manager", "groups": ["mgr"], "pass": { "type": "threshold", "outcome": "Approved", "count": 1 } },
    { "label": "Committee", "groups": ["committee"], "pass": { "type": "threshold", "outcome": "Approved", "fraction": "two_thirds", "of": "votes", "quorum": 4 } }
  ],
  "stages_outcome": "Approved"
}

Special decision outcomes: "$met" (the outcome that met a "outcome": "*" — "same outcome" — threshold) and "$leading" (the most chosen outcome). Old completion_rule values run as: first_response → any one, all_complete → everyone responds and the most chosen wins, consensus → a clear leader after min_responses, unanimous → everyone the same (else the most chosen, recorded as not unanimous), custom → its expression. One difference: a tie under all_complete / consensus now goes to the outcome listed first on the step.

Limits#

  • Qualifications are fixed when a person is added to the task: a role or team change afterwards does not move them between groups (deactivation does count).
  • Job titles come from people's profiles (job_title); there is no seniority level field, so "director or above" is a list of titles or roles.
  • With "counts towards one group only", weighted thresholds and votes-cast percentages still count in each group.
  • "Only once the outcome can no longer change" treats responses already given as final.

Was this page helpful?