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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List issue relations

> List outgoing and inverse relations for one Linear issue.

`listIssueRelations` returns both directions because directional relationships have different meaning depending on which issue you start from.

```ts automations/list-linear-relations.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { listIssueRelations } from "automate.ax/linear"

export default automation("List Linear issue relations", () => {
  onHttpRequest({ scope: "automation" })
  listIssueRelations({ issueId: "ENG-123", limit: 50 })
})
```

`issueId` accepts a UUID or identifier. `limit` is 1–50 and defaults to 50 for each direction. `after` paginates outgoing `relations`; `inverseAfter` independently paginates `inverseRelations`; optional `account` defaults to the project binding.

Returns both arrays and separate `pageInfo` and `inversePageInfo`. Each relation includes `id`, `type`, source `issue`, target `relatedIssue`, and lifecycle dates.
