Request and ticket lifecycle
Section titled “Request and ticket lifecycle”This pattern is for builders of anything people ask for and someone else handles: support tickets, leave and purchase requests, job applications. Read it after My First Application and the Approval chain pattern.
The problem
Section titled “The problem”A request has a life: it is submitted, gets a number, waits in someone’s queue, is worked on, perhaps approved, answered, closed and rated. The requester wants to know where it stands; the team wants a clear queue; managers want to know how long things take. All of that depends on one thing being true: the record’s state always matches where it really is in the process.
When to use it
Section titled “When to use it”Use this pattern for any record that one party submits and another party processes through several stages. The first decision is how people submit it:
| Build it as… | When | What you get |
|---|---|---|
| A service (Administration › Services › Services Catalog) | People across the organization — or anonymous visitors — request it from the portal | The service appears in Services › Services Catalog for its Audience; requesters follow their requests in Outbox, step owners work them in Inbox, and Watchers follow every request in Watching |
| A normal entity with a workflow and views | A known group works with the records through views you share with them | Full control over the list screens; owners still get their steps in Inbox |
See Publish a service with an approval workflow and Services and their requests.
How to build it in OSOS
Section titled “How to build it in OSOS”- Give every request a number. Add a Sequence Field — the platform assigns it on creation and nobody can change it. Use Conditional Sequencing for a counter that restarts each year. See Sequence Field.
- Model the process as a workflow. One step per stage where someone must act, owned by a role, with Return and Reject where they make sense. See the Approval chain pattern.
- Decide the status model. List the states people talk about (Open, In Progress, Closed) and map each one to a workflow step or action. If the steps already say it, you may not need a status field at all — views can show the record’s Workflow path. If you need a status field for lists, filters, boards and charts, let reactions set it — see the recommended way.
- Set time limits. Turn on Timing on the steps that have a service level, and add an On Time Exceeded reaction on the Time Monitoring sub-tab to escalate. See Time limits and escalation.
- Keep people informed. Add reactions on On Workflow Step Reached to tell the next owner, and on On Workflow Action Executed (or On Workflow Step Exited with an action) to tell the requester what was decided.
- Give the team a queue. Build a view for the team with a query for open records, and — if you have a status field — a Kanban face split by it. See Kanban view.
- Close and rate. End with a step where the requester rates the service (a Block with a score and a comment), then a closing action to the final step.
- Decide what happens after closure. Keep closed records for reporting, and archive them only when they no longer need to be listed — see Archive, don’t delete.
Worked example: the support ticket
Section titled “Worked example: the support ticket”The Customer Support tutorial is this pattern end to end, built as a normal entity, Support Tickets:
| Lifecycle stage | What the tutorial uses |
|---|---|
| Submission | The Ticket Request view; the customer owns the Open Ticket step and selects Send Request |
| Reference number | Ticket number, a Sequence field |
| Queue | The Help Desk step, owned by the Technical Support Office group with Take Ownership; the Incoming Requests view |
| Work | Processing Ticket, owned by the person in Assigned to |
| Sign-off | Manager Approval, owned by the Support Manager |
| Answer and rating | Service Evaluation, owned by the customer, with the Service evaluation Block |
| Closure | Close Ticket on Help Desk, to Complete Step |
| Keeping people informed | Seven reactions on On Workflow Step Reached and On Workflow Step Exited |
| Figures | The Ticket Status summary (tickets by status) and the monthly Performance Report |
The status that can drift
Section titled “The status that can drift”The tutorial also has a Ticket status Category field (Open, In Progress, Responded, Duplicate, Closed, default Open) that people set by hand: it is Editable at the Help Desk and Processing Ticket steps. That keeps the tutorial short, but it is an anti-pattern in a real application. Nothing ties the field to the workflow: a representative can send a solution and forget to change the status, or set Closed on a ticket that is still at Help Desk. The Closed tickets query, the Ticket Status chart and the Performance Report then count what people typed, not where the tickets really are.
The recommended way
Section titled “The recommended way”Let the workflow drive the status, and let nobody type it.
-
Keep Ticket status with Default Value Open, so every new ticket starts Open.
-
On the Support Tickets Reactions tab, add one reaction per change of state. Each uses the event On Workflow Action Executed, with the step and the action picked, and the action Update Data Entry with Choose update mode Self, the Ticket status field, Value type Manual and the value:
Step Action Status set Help Desk Send to Processing In Progress Help Desk Send Solution Responded Help Desk Close Ticket Closed Help Desk Close as duplicate (a new action to Complete Step) Duplicate React to the action rather than to reaching Help Desk: every route in this workflow returns to Help Desk, so a reaction on reaching that step would reset the status each time. Duplicate is a judgement, not a stage, so it gets its own action rather than a step.
-
Take Ticket status out of the Creating new entries and Editing entries fields of every view, so nobody can change it by hand. Leave it in the list and details so people can still see it.
-
Do not turn on Lock Field for it: a locked field keeps its stored value even when an automation sends a new one, so the reactions would have no effect.
-
Test each reaction once with a real ticket, with the step field rules you chose, and check the value changed.
This is exactly how the Recruitment tutorial handles Job status on Jobs: reactions on On Workflow Step Exited set it to Open when Job review is approved, Archived when it is archived, and Closed when Job publication finishes — “the reactions below set this field for you”.
Now the queries, the summary, a Kanban board split by Ticket status and the monthly report all reflect the real process, because the status can only change when the ticket really moves.
Anti-patterns
Section titled “Anti-patterns”- A status people edit by hand next to a workflow. It drifts from the real step, and every chart built on it is wrong. Set it with reactions, as above, or show the Workflow path instead.
- A status field instead of a workflow. Moving a record by editing Status has no owners, no queue in Inbox, no time limits and no decision history. Use workflow steps for the stages and actions for the decisions.
- Reacting to approvals with On Entry Updated. Moving between steps is not an update, so the reaction never runs. Use On Workflow Action Executed or On Workflow Step Reached.
- A reference number built by a reaction or typed by people. It can repeat or be missed. Use a Sequence Field.
- Deleting closed requests to tidy the queue. You lose the figures and the history. Filter the queue with a query, and archive when needed.
Related pages
Section titled “Related pages”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27