Pylon Create

Pylon Create

Certified

Create a Pylon issue

Calls POST /issues to create a new issue and its first message. Requires either accountId or requesterEmail so Pylon knows which customer the issue is for.

yaml
type: io.kestra.plugin.pylon.issue.Create

Create a Pylon issue from a flow

yaml
id: create_pylon_issue
namespace: company.team

inputs:
  - id: subject
    type: STRING
  - id: description
    type: STRING

tasks:
  - id: create_issue
    type: io.kestra.plugin.pylon.issue.Create
    apiToken: "{{ secret('PYLON_API_TOKEN') }}"
    title: "{{ inputs.subject }}"
    bodyHtml: "{{ inputs.description }}"
    requesterEmail: "customer@example.com"

  - id: log_issue_url
    type: io.kestra.plugin.core.log.Log
    message: "Created Pylon issue: {{ outputs.create_issue.issueUrl }}"
Properties

Pylon API token

API token created by a Pylon Admin user (Pylon Settings > API), sent as Authorization: Bearer <token> on every request. Store it as a Kestra secret and reference it with {{ secret('PYLON_API_TOKEN') }} — never hardcode it in a flow.

Issue body (HTML)

HTML content of the issue's first message.

Issue title

Short summary of the issue shown in Pylon.

Account ID

Pylon account this issue belongs to. Required unless requesterEmail (or a requester) is provided.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Assignee ID

Pylon user ID the issue should be assigned to.

Defaulthttps://api.usepylon.com

Pylon API base URL

Base URL of the Pylon API. Defaults to the US region (https://api.usepylon.com); override with https://api.eu.usepylon.com for the EU region.

Custom fields

Map of custom field slug to value. Use a list value for a multi-valued field (e.g. multiselect), or a single string otherwise. Field slugs are listed by the Pylon GET /custom-fields endpoint.

Possible Values
URGENTHIGHMEDIUMLOW

Priority

Priority of the issue. Leave blank to use Pylon's default.

Requester email

Email of the customer this issue is for. If no matching contact exists, one is created. Required unless accountId is provided.

SubTypestring

Tags

Tags to apply to the issue.

Team ID

Pylon team the issue should be assigned to.

Issue

Full Pylon issue object as returned by the API.

Issue ID

Pylon-assigned identifier of the newly created issue.

Issue number

Human-readable issue number, taken from the response's number field. Null if the field is missing or not numeric.

Issue URL

Link to the issue in Pylon, taken from the response's link field. Null if the API response omits it.