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

# jinja_filters

# `prefect.server.events.jinja_filters`

## Functions

### `ui_url` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/jinja_filters.py#L34" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
ui_url(ctx: Mapping[str, Any], obj: Any) -> str | None
```

Return the UI URL for the given object.

### `ui_resource_events_url` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/jinja_filters.py#L40" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
ui_resource_events_url(ctx: Mapping[str, Any], obj: Any) -> str | None
```

Given a Resource or Model, return a UI link to the events page
filtered for that resource. If an unsupported object is provided,
return `None`.

Currently supports Automation, Resource, Deployment, Flow, FlowRun, TaskRun, and
WorkQueue objects. Within a Resource, deployment, flow, flow-run, task-run,
and work-queue are supported.

### `flow_run_id` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/jinja_filters.py#L70" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
flow_run_id(text: str | None) -> str | None
```

Extract a flow run ID from a string, such as a PR body.
