> ## Documentation Index
> Fetch the complete documentation index at: https://docsv4.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Order Detail

> One order's page: its fields, active steps and tasks, the steps it has run, its execution log and history, and the actions you can take on it.

Click an order in **Activities › Order** to open its page. The page refreshes on its own every few seconds while it is open, so a task finishing in the field shows here without reloading.

<Note>
  Required permission:

  * View Order
  * Edit Order, to edit, change the status, cancel, retry or resolve
  * Delete Order, to delete
</Note>

## The order page

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-detail.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=0a14578ad38656b2a3347f440e31d797" alt="Order detail page" width="600" data-path="images/v4/activities/order/order-detail.png" />
</div>

1. **Order number and status**

The order's number and its current status, coloured by its meaning (grey New, yellow In progress, green Completed).

2. **Order Type**

The Order Type this order belongs to. If you can view Order Types, the name is a link that opens it in **Workflow › Order Type**.

3. **Edit**

Changes the order's field values. See [Edit an order](#edit-an-order).

4. **Change status**

Moves the order to another status by hand. See [Change the status](#change-the-status).

5. **More actions** (**⋯**)

Holds **Cancel order** and **Delete**. See [Cancel an order](#cancel-an-order) and [Delete an order](#delete-an-order).

6. **Tabs**

**Details** (shown first), **Steps**, **Execution log** and **History**. Each is described below.

7. **Order fields**

Every field of the order with its value. A list field is shown as a small table with a row number; a coordinate is shown on a small map; an empty value shows "—". If the Order Type has archived a field that still has a value on this order, it is listed under **Archived fields** at the bottom of the card.

8. **Active steps**

The steps the order is waiting on right now, under the fields card. Each line shows the step, what it is waiting for (for example "Waiting for task", "Waiting for webhook", "Waiting for other paths"), who holds the task and how long it has waited ("since 12:45 PM (40m)"). **Open task** opens the task. When the order is waiting for a status before its steps start, the card says "Steps start when the status becomes …". The card is hidden once the order has finished.

9. **Tasks**

Every task this order has created, with its status (Unassigned, Ongoing, Done), the step that created it and its assignee. A retried task shows "Attempt 2"; a task made for one row of a list shows "Row 3". **Open task** opens the task. If you edited a field after a task was created and the task still uses the old value, the task shows "Still uses the old …".

When the order was created by a task finishing, a **Source task** card above **Tasks** shows that task with an **Open task** button.

<Note>
  An order keeps running on the Order Type version it was created with. When a newer version has been published, the **Steps** tab says "A newer version (…) exists. This order keeps version …".
</Note>

## Steps

The **Steps** tab shows the Order Type's steps as a diagram, with the path this order has taken so far.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-steps.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=3567e8339ba1c37bab41deeb9bd42836" alt="Steps tab of an order" width="600" data-path="images/v4/activities/order/order-steps.png" />
</div>

1. **Legend**

**Done** (green), **Running** (in progress), **Not taken** (grey: the order did not go this way) and **Needs attention** (red). A condition step marks the rule that matched.

2. **Refresh**

Reloads the diagram. "Updated …" beside it shows when it was last loaded.

3. **Current step**

The step the order is at now, with what it is waiting for. Click any step to see its latest log lines and open it in the **Execution log**.

4. **Zoom**

Zoom in, zoom out and fit the whole diagram on screen. You can also drag the diagram and scroll to zoom.

How the steps are built is explained in [Order Type](/pages/workflow/order-type/introduction).

## Execution log

The **Execution log** tab lists everything the steps have done, newest first.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-execution-log.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=6dec800800f49e1b9ce3914d5c8d5f5d" alt="Execution log tab" width="600" data-path="images/v4/activities/order/order-execution-log.png" />
</div>

1. **Events**

Shows **All events**, or only **Tasks**, **Conditions**, **Webhooks** or **Status** events.

2. **Problems only**

Shows only the lines that went wrong, such as a failed webhook or a rule that did not match.

3. **Columns**

| Column | What it shows |
| - | - |
| **Time** | When it happened. |
| **Step** | The step, with its type icon. |
| **Event** | What happened, for example "Started", "Task created", "Task done", "Rule matched", "No rule matched", "Status set to …", "Webhook sent", "Waiting for other paths", "Order finished". |
| **Result** | Extra detail, for example "HTTP 503 in 812 ms" for a webhook, or why a step stopped ("The order finished on another path", "Order cancelled", "Status set by hand"). |
| **By** | **System** for the steps, **API** for calls from another system, or the user's name. |

## History

The **History** tab lists every change to the order itself, newest first.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-history.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=ad81c2052609950a10e824487638dec1" alt="History tab" width="600" data-path="images/v4/activities/order/order-history.png" />
</div>

1. **Columns**

| Column | What it shows |
| - | - |
| **Time** | When the change was made. |
| **Action** | Created, Fields edited, Status changed, Cancelled, Attention resolved, Step retried, and so on. |
| **Change** | What changed: the old and new status, or each edited field with its old and new value. |
| **Reason** | The reason typed when the status was changed or the order was cancelled. |
| **By** | **System** when a step made the change, otherwise the user or the API client. |

## Needs attention

When a step cannot go on, the order stops and a red banner at the top says why, for example "Needs attention: Task could not be created at Delivery" with "Task quota reached" below it. The order also gets a red warning sign in the Orders list.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-attention.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=66bc404fa93764e682030033a74e308b" alt="Order that needs attention" width="600" data-path="images/v4/activities/order/order-attention.png" />
</div>

1. **Reason**

What went wrong and at which step. Common reasons: Task could not be created (task quota reached, the list field is empty, the Task Type or the assignee no longer exists), No rule matched, Webhook failed (with the HTTP status of the last call), Waiting for paths that stopped, Safety limit reached.

2. **Retry step**

Runs the stopped step again. Fix the cause first, for example free up the task quota or fill in the missing field with **Edit**. For "No rule matched", retry uses the rules of the order's version, so edit the order's fields first, or cancel and create it again.

3. **Resolve**

Removes the flag without running anything. The order stays where it is. You must type a **Note** saying why.

4. **Cancel order**

Cancels the order. See [Cancel an order](#cancel-an-order).

## Edit an order

Click **Edit** to change the order's field values. A finished order cannot be edited ("A finished order cannot be edited").

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/edit-order.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=07b6e849752f4bad4352d571e6d5b215" alt="Edit order panel" width="400" data-path="images/v4/activities/order/edit-order.png" />
</div>

The panel shows the same fields as the [create form](/pages/activities/order/creating-an-order), filled in with the current values.

1. **Save**

Saves only the fields you changed and shows "Order … saved.". Tasks that were already created keep the values they were given; if any open task still uses an old value, you're told how many, and the task shows "Still uses the old …" in **Tasks**. If someone else changed the order while you were editing, you're asked to reload.

## Change the status

Click **Change status** to move the order to another status by hand. It is hidden on a finished order.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/change-status.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=d7def05f9672b9d559215b12f04e6131" alt="Change status dialog" width="400" data-path="images/v4/activities/order/change-status.png" />
</div>

1. **Current**

The order's status now.

2. **New status**

Every status of the Order Type. Statuses that end the order are marked **Final**. Choosing one warns: "This ends the order. Running steps stop; open tasks are not changed." and lists the open tasks. If the Order Type's steps start on this status, you see "This starts the steps."

3. **Reason**

Why you changed it. Required when the new status ends the order. It is shown in **History**.

Click **Change status** to apply it.

## Cancel an order

Open **More actions** (**⋯**) and choose **Cancel order**.

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/order-more-actions.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=510c1cdbeb320ccb7b3d89825689322c" alt="More actions menu" width="400" data-path="images/v4/activities/order/order-more-actions.png" />
</div>

1. **Cancel order**

Available while the order has not finished, and only when the Order Type has a cancel status (otherwise: "This Order Type has no cancel status").

2. **Delete**

See [Delete an order](#delete-an-order).

<div align="center">
  <img src="https://mintcdn.com/mileappv4/is2Iz6JyejGk_jkF/images/v4/activities/order/cancel-order.png?fit=max&auto=format&n=is2Iz6JyejGk_jkF&q=85&s=024be5c8d3e6f478afbd0eb7b5dfb5a9" alt="Cancel order dialog" width="400" data-path="images/v4/activities/order/cancel-order.png" />
</div>

1. **What happens to the tasks**

Tasks not started yet are cancelled ("Will be cancelled"). Tasks a field worker has already started are kept ("Kept: a worker has started it") and stay listed on the order page so you can close them in Tasks.

2. **Reason**

Required. Shown in **History**.

Click **Cancel order** to cancel, or **Keep order** to close the dialog. The order moves to the cancel status and its running steps stop.

## Delete an order

Open **More actions** (**⋯**) and choose **Delete**, then confirm. This cannot be undone. An order that already has tasks cannot be deleted ("This order has tasks. Cancel it instead.").

## Related

* [Order](/pages/activities/order/introduction)
* [Creating an order](/pages/activities/order/creating-an-order)
* [Task](/pages/activities/task/introduction)
* [Order Type](/pages/workflow/order-type/introduction)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.