For the complete documentation index, see llms.txt. This page is also available as Markdown.

twin

Reference for the twin variable in action placeholders and conditions.

This page describes the twin variable: the object this action created in the target system, one of the variables you can use in {{ }} placeholders and conditions when you customize an action's YAML definition. It is available in steps, not in templated settings (such as a webhook body) (such as a webhook body) or inbound. Start with Actions → The 'steps' section for how the definition works.

Root twin (outbound only): the object this action created for this alert or incident in the target system. Absent (never null) until a CREATE step's referenceWrite has run, so twin == nil marks the first run. One twin per action and alert or incident.

openapi: 3.1.0
info:
  title: ilert action context - twin
  version: 1.0.0
  description: >-
    Root `twin` (outbound only): the object this action created for this
    alert or incident in the target system. Absent (never null) until a
    `CREATE` step's `referenceWrite` has run, so `twin == nil` marks the first
    run. One twin per action and alert or incident.
components:
  schemas:
    Twin:
      type: object
      required: [id, externalId, externalSystem, status, ref]
      properties:
        id:
          type: integer
          description: Internal twin id.
        externalId:
          type: string
          description: The object's id in the target system, from `referenceWrite.externalId`.
        externalUrl:
          type: [string, 'null']
          description: Link to the object, from `referenceWrite.externalUrl`.
        externalSystem:
          type: string
          description: The template's brand, for example `jira`.
        status:
          type: string
          enum: [ACTIVE, TERMINAL]
        ref:
          type: object
          additionalProperties: true
          description: The values written by `referenceWrite.ref`.
          examples:
            - issueId: "10042"
              issueKey: OPS-17

Last updated

Was this helpful?