> For the complete documentation index, see [llms.txt](https://docs.rewst.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rewst.help/documentation/automations/subworkflows/rewst-process-psa-update-ticket.md).

# \[REWST - PROCESS] PSA: Update Ticket

This workflow functions as a universal PSA ticket updating mechanism that abstracts the underlying complexity of different PSA platforms, allowing MSPs to programmatically update ticket details across Freshdesk, Halo, Kaseya BMS, ConnectWise, ServiceNow, or Datto PSA from a single standardized interface. It serves as a critical building block for automating ticket lifecycle management, enabling more complex workflows like auto-responses, SLA adherence tracking, and customer communication updates without needing platform-specific code. Technically, the workflow operates by first determining which PSA provider is in use through the "determine\_provider" task, then routes the request to the appropriate platform-specific ticket update task, creating a vendor-agnostic approach that simplifies cross-platform automation development. This function proves especially valuable for MSPs implementing advanced service desk automation, cross-platform data synchronization, and consistent multi-system ticket management processes.

This workflow contains 11 tasks.

### Inputs

* **psa** - string
  * Ability to override PSA. Set to organization varilable default\_psa is not supplied
* **ticket\_id** - string
  * ID of the ticket to be updated
* **cwm\_tech\_id** - string
  * Connectwise PSA Technician ID
* **work\_minutes** - string
  * Number of minutes worked
* **external\_note** - string
  * Note that will be exposed to Customer
* **internal\_note** - string
  * Note that only your PSA users will see
* **resolution\_note** - string
  * Note to be placed in the Resolution field
* **complete\_workflow** - string
  * Mark ticket as templete
* **set\_ticket\_status** - string
  * Set Ticket Status ID
* **datto\_ticket\_number** - string
  * Ticket number used in Datto

### Outputs

* **automation\_log**: Standardized Rewst automation log

### Key tasks

* **begin**: Core integration: noop
* **determine\_provider**: Core integration: noop
* **freshdesk\_update\_ticket**: Data modification
* **halo\_psa\_update\_ticket**: Data modification
* **kaseya\_bms\_update\_ticket**: Data modification

### Jinja examples

#### Example 1

```jinja
{{- CTX.psa -}}
```

Used in publishing 'psa'

#### Example 2

```jinja
{{- ORG.VARIABLES.default_psa -}}
```

Used in publishing 'psa'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rewst.help/documentation/automations/subworkflows/rewst-process-psa-update-ticket.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
