Catalogue Request Approvals - edmozley/freeitsm GitHub Wiki

Catalogue Request Approvals

Set it up: Forms → the 🛡️ shield icon on a form's row → Approval settings Approve requests: Forms → Approvals What the customer sees: their portal dashboard → Your requests

Some requests shouldn't go straight to the service desk. A new laptop, a software licence, access to a system — these often need a manager or a budget-holder to say yes first. A catalogue item can now be set to wait for approval, and only become a ticket once someone signs it off.

This is optional and per-item: leave it off and the catalogue behaves exactly as before.

Requiring approval on a catalogue item

A catalogue item is a form you've offered in the portal (see Portal Request Catalogue). On the Forms list, each row has a 🛡️ shield button — Approval settings:

  1. Tick Require approval before a ticket is raised.
  2. Set up the step: under Who decides, choose A person or A team (see Approval by a team below).
  3. For a person, choose the approver — the member of staff who signs these off.
  4. Save.

Since 5.10.0 a form can have more than one step, or follow a named approval chain - see Approval in steps. An existing form opens as one step, set up exactly as it was, and saving it unchanged keeps it that way.

The form's row then shows an amber Needs approval pill.

💡 Approval only bites on catalogue (portal) requests. If the form isn't in the catalogue yet, the setting is saved but does nothing until you publish it — the modal says so. A member of staff filling the form in internally is never gated; there's no customer to raise the ticket for.

💡 A form set to "require approval" but with no approver chosen does nothing. It's treated as unconfigured rather than trapping requests with nobody able to clear them.

The approver cannot approve their own request

Under the approver there is a tick box, The approver cannot approve a request they made themselves. It is off unless you turn it on, so existing forms behave as they always have.

FreeITSM matches on email address: it applies when a member of staff makes a request through the portal using the address they log in with. With it on, their own requests are not theirs to decide - they show as Stuck until an administrator moves them to someone else.

Approval by a team (4.3.0)

Choose A team under Who decides when one person's say-so is not enough - a purchase that needs two of the three budget holders, access that needs two of the security team.

Setting What it does
Team Any active team from People → Teams. The dropdown shows how many members each has.
Approvals needed How many different members must approve. 1 to 20.
Rejections needed to decline How many must reject before the request is declined. Starts at 1 - one rejection stops it. Raise it when one person should not be able to block a request alone.

How it works:

  • Each member votes once. A vote cannot be changed or cast twice.
  • Whichever number is reached first decides it. Reach Approvals needed and the ticket is raised (or the form's own When approved actions run); reach Rejections needed and it is declined. The ticket is raised once, even when the last two votes land at the same instant.
  • A rejection needs a reason. An approval's note is optional.
  • The requester never votes, even if they are in the team. In team mode this is always on.
  • Membership is checked at every vote. Somebody who leaves the team can no longer vote on requests already waiting; somebody who joins can. Votes already cast still count.
  • The policy is fixed when the request is made. Changing the form's team or numbers affects new requests only, just as changing a named approver always has.

The approval window warns when the team has fewer members than the approvals needed, because its requests could never be approved.

💡 Switching a form from a person to a team keeps the person. Switch back to A person and the approver you had is still chosen.

Team members do not need Forms access

Being in a team that approves a form is enough to open Forms → Approvals, exactly as being a named approver is (see Who can approve).

Approval in steps (5.10.0)

Some requests need more than one yes, in order: the IT manager, then finance, then the board when the total is over 5,000. The total can be a Calculated total the form works out itself. In Approval settings, Add puts another step under the last one; the arrows reorder, the cross removes.

On each step What it does
Name Optional, shown to the approver and the requester - "waiting for Finance, step 2 of 3"
Who decides A person or A team, exactly as a single approval
Only when Always, or a condition on an answer: a question, a comparison and a value - Order total is more than 5000. Several conditions: all or any
If nobody can decide Use the default, or a person or team to send it to when the step finds nobody - the approver has left or made the request, or the team has too few members

How it moves:

  • One step at a time, in order. A step's approvers get a bell notification when the request reaches them (each person can switch it off in Preferences).
  • Any rejection ends it. Later steps never run.
  • When the last step passes the request is approved, and the ticket, the form's When approved actions and the catalogue_request.approved event happen then, once.
  • "Only when" is decided when the request is made. A step that does not apply is skipped, and the record says why: Skipped Step 3 of 3: Board: Order total was 3000. If no step applies at all, the request is approved straight away.
  • An answer that cannot be read means the step runs. A blank total, or one that is not a number, never skips the board.
  • The steps are fixed when the request is made. Changing the form or a chain affects new requests only.
  • Override and Move act on the step it is on. Overriding step 1 moves the request to step 2; it never waves the rest through.
  • Workflows get a new trigger, A catalogue request passes an approval step, with the step it is now on.

Approval chains

The same steps on many forms, set up once: Forms -> Settings -> Approvals -> New. Name it (Hardware purchase), add the steps, save. Then in a form's Approval settings choose An approval chain and pick it. The form's own steps are kept, so switching back restores them.

A chain's Only when names its question by label, so it works on every form with a question of that name; a form without it runs the step. A chain cannot be deleted while a form uses it - the list shows which do. Who may manage chains is its own permission, Manage approval chains and the default approver.

If nobody can decide - the default

Also under Forms -> Settings -> Approvals: where a step goes when nobody can decide it and the step has no fallback of its own - a person or a team. Left on Nobody, such a request is Stuck for an administrator to move or override, as before. A step is never skipped because nobody could decide it, and the record notes each fallback used.

The manager or a cost centre owner (5.10.0)

A step's Who decides has two more choices, for the people who say yes to spending but are not service desk staff:

Choice Who decides
The requester's manager The Manager on the requester's person record
The owner of a cost centre The owner of the requester's own cost centre, or of the one chosen in a cost centre question on the form, and its deputy. The owner is a person or a people group, where any member decides for the group. Owners are set under System -> Cost Centres, or by the import

They decide on the portal's Approvals page, signed in as themselves, with no service desk account. The tab appears for anybody who manages someone or owns a cost centre. It lists what is waiting for them with every answer, the price and the requester's cost centre. They approve, or reject with a reason the requester sees.

  • Who it is is checked at every decision. A new manager can decide a request that was waiting for the old one, and somebody who has left cannot.
  • The requester never decides their own step. If they own the cost centre, the deputy decides. With no deputy, the step's fallback decides.
  • Somebody at two steps approves once. A manager who also owns the cost centre approves the first step, and the second is recorded already approved by them.
  • Nobody to ask (no manager on the record, no owner on the cost centre) sends the step to its fallback, which is always a member of staff or a team. With none, the request is Stuck.
  • Staff see these requests under All pending, with who they are waiting for. They cannot approve them. An administrator can Override the step or Move it to staff.

When the deputy decides, email and Remind

Under Forms -> Settings -> Approvals:

Setting What it does
When may a cost centre's deputy decide? Any time (the owner and the deputy are equals, and the first to decide settles it; the default). Or only as cover: when the owner has set Away until on the portal's Approvals page, has left, or made the request, or after the number of days you choose
Email approvers from A mailbox. When a request reaches a step, its approvers get an email with a link to it. There is no approve button in the email, so forwarding it never passes on the decision. Left on No email, the bell alone tells them
Let the requester press Remind On by default. Remind beside a waiting request on the portal tells its approvers again, by the bell and by email, at most once a day per step

The requester's cost centre at the time they asked is kept with the request. The approver sees it, and so does the ticket an approval raises.

The access service's owner (5.19.0)

A step's Who decides can also be The access service's owner: the owner (a person or a people group) of the access service the item gives - chosen in What happens next -> When approved -> Give access to - with its deputy standing in, on the portal's Approvals page. The same rules as a cost centre's owner: never their own request, the deputy as an equal or only as cover. No service on the request means nobody can decide, so the step's fallback is used (#505).

Seeing what waits (5.19.0)

When a request is waiting for somebody's decision - as a manager, a cost centre owner or an access service owner - the top of their portal home page says so: "1 request is waiting for your approval - Review", linking to Approvals. It is shown only when something is waiting, so an approver never has to know to look in the menu.

What happens when a customer submits

Instead of the request sitting in Forms → Submissions waiting for someone to notice, it goes to the chosen approver as a pending approval. The approver — and only the approver (or an administrator) — can decide it.

The person who was named as approver is fixed at the moment of submission. If you later change the catalogue item's approver, requests already waiting stay with the person the customer was originally told would handle them; only new requests go to the new approver.

Approving or rejecting

Open Forms → Approvals. Three views down the side:

  • For me — requests waiting on you.
  • All pending — every request awaiting anyone (oversight).
  • Decided by me — your recent approvals and rejections, including votes on team requests that are still waiting for others.

Each card shows the request, who asked, when, the price it was requested at (5.4.0, when the item has one), and every answer they gave. Add an optional note, then:

  • Approve → a ticket is raised automatically. It's opened as the requester, under their company, with the submitted answers in the body, and the request is linked to it. The desk picks it up like any other ticket.
  • Reject → the decision is recorded and no ticket is raised.

A team request's card also shows the team, how far it has got (1 of 2 approvals, and rejections when more than one is needed) and every vote so far - who, when, and their note. Once you have voted it leaves For me. Your click is one vote: a toast says Your approval is recorded - 1 of 2, and the request stays pending until enough others agree.

🔑 Approving is how the request becomes a ticket. There's no separate "raise a ticket from this submission" step for a gated request — approval is that step.

Changing the answers before you decide (5.8.0)

The requester does not always know everything - the username the new starter will get, the right site, a start date that has moved. Edit on a waiting request opens its answers, so you can put them right before you approve, instead of approving something wrong or rejecting it to be asked again.

  • Every question is listed, including ones the requester left empty. Change what you need, add a reason if it helps, and Save.
  • The same rules as when it was made: a choice must be on the list, a number must be a number, a required answer cannot be emptied. Lookups and tables cannot be changed here.
  • Nothing is changed quietly. Each change shows on the card - who changed which answer, from what, to what, when and why. The requester sees what changed under Your requests on their portal (without your reason, which may be an internal note). The ticket raised on approval uses the corrected answers and lists the changes under Changed during approval.
  • Who can: whoever can decide the request - its approver, a member of its approving team, or an administrator. Never the person who made it, and nobody once it has been decided.

Asked for by @Shadowtech87 in discussion #298. Internals: Approvers change a request's answers - Developer Guide.

What the customer sees

A pending request isn't a ticket yet, so it would otherwise vanish from the customer's view until it was approved. Their portal dashboard has a Your requests section showing each request they've submitted and its state:

  • Awaiting approval - submitted, waiting on the approver. Has Cancel (see below).
  • Approved — with a link straight to the ticket it became.
  • Declined — the approver turned it down.
  • Sent (5.4.0) - an item that needs no approval; it went straight to the service desk.
  • Cancelled (5.4.0) - the requester withdrew it, with their reason.

Since 5.4.0 it lists every catalogue request, not only those needing approval - before, a request with no approval was saved and then shown nowhere. Forms filled in on a ticket or in a task are not requests and are not listed. Each request shows the price it was made at, if the item has one (the catalogue card). The section only appears when they actually have requests.

Cancelling a request (5.4.0)

A person who asked for something by mistake, or no longer needs it, can withdraw it while it is awaiting approval:

  1. On Your requests, they click Cancel beside the request.
  2. A dialog asks why - the reason is required, and the approver sees it.
  3. Keep closes the dialog; Cancel withdraws the request.

What happens then:

  • The request is kept, never deleted, marked Cancelled by the requester with the reason.
  • It leaves the approvals inbox and can no longer be approved or rejected. A cancel and an approval clicked at the same moment cannot both win - whichever comes second finds the request no longer waiting.
  • No ticket is raised for it, ever - Create a ticket in a workflow refuses a cancelled request.
  • Only the person who made the request can cancel it.

A request that has been decided, or was sent with no approval, has no Cancel. It is already with the service desk - once approved there is a ticket, and the ticket is where to say so.

💡 Telling the approver. A cancel sends no email by itself. It fires the workflow trigger catalogue_request.cancelled, with the reason as {{request.reason}} and who was to approve it (approver.id, or approval_team.id for a team) - build a workflow on it to email them or the team.

A staff approver's note stays internal: a request they decline shows as Declined without the reason. A manager or cost centre owner who declines on the portal must give a reason, and the requester sees it under Declined (5.10.0).

Who can approve

For a person request: the assigned approver, or an administrator. For a team request: any current, active member of the team who did not make the request. For a manager or cost centre owner step: that person, on the portal, worked out at the moment they decide (see above). Everyone else is refused.

When an administrator steps in

Override

On a person request, an administrator's Approve or Reject decides it, as it always has.

On a team request, an administrator's click is not a vote. An administrator who is not voting as a member sees a note on the card: their Approve or Reject overrides the team, and the note box becomes the reason, which must be filled in. The override decides the request at once and is recorded on it - who, when, which way and why.

(An administrator who is a member of the team votes like anyone else in For me.)

Move

A waiting request can be sent somewhere else with Move, on its card - to another team (with its own Approvals needed) or to a named person. A reason is required. Use it when the approvers are away, the team was wrong, or a request is stuck.

Votes cast before the move stay on the record but no longer count - the new approvers start from nothing. A move is recorded on the request like an override.

Stuck requests

A request that can no longer be decided by its approvers is marked Stuck on its card:

  • the team has no active members left, or too few to reach either number;
  • the named approver made the request themselves, and the form excludes the requester.

A stuck request is never approved automatically. An administrator moves or overrides it.

An approver does not need the Forms module (since 3.8.0). Being named as the approver of a form that requires approval, or of a request, is enough to open the Approvals inbox: they get a Form approvals tile in the launcher and on the landing page, see For me and Decided by me, and decide their own requests. They do not see All pending (every request and every answer in it), the designer, or anybody else's submissions - those stay with Forms users. Somebody given Forms Read only access can approve too, when they are named.

To keep approvers out of the designer altogether, turn on Forms → Settings → Access → Only people with "Design forms" - see Roles & Permissions.

Worked example

Equipment Request is in the catalogue and set to require approval, with Priya (IT Manager) as approver.

  1. Tom requests a docking station. His dashboard shows Docking station — Awaiting approval.
  2. Priya opens Forms → Approvals → For me, sees Tom's request and his answers, and clicks Approve.
  3. A ticket RPT-402-11890 is raised as Tom, with his answers in the first message. Priya's inbox no longer lists it; Tom's dashboard now shows Approved → RPT-402-11890, linking to the ticket.

Had Priya clicked Reject, Tom would see Declined and no ticket would exist.

What this version does not do (yet)

  • A per-form "a different person at each step". Somebody at two steps approves once.
  • A staff approver's reason is not shown to the customer (see above).

See also