Skip to content

For the complete documentation index, see llms.txt.

Trigger Promptless from Jira Automation

Use a Jira Automation flow when the Jira triggers don’t fit your workflow. A flow can start Promptless on a more specific condition. For example, it can run when a ticket is assigned to a specific teammate, or when every ticket in a release is marked done. Jira Automation offers a wide range of triggers, conditions, and actions, so you decide exactly when the flow runs.

The flow sends a web request with the ticket to the Promptless API trigger. Promptless works from the ticket and opens a documentation suggestion.

Promptless comments on and creates Jira tickets as one of two accounts:

  • With an Atlassian service account attached, Promptless posts as the service account.
  • Without a service account, Promptless posts comments and creates tickets as the user who connected Atlassian, but only after that user gives explicit approval. Its comments and tickets appear under that person’s name. Without that approval, Promptless can’t comment or create tickets on the user’s behalf.

To assign tickets to Promptless itself, you’ll need to attach a service account as well.

You need:

This example flow starts Promptless when a ticket in the space is assigned to a docs owner.

  1. In Jira, open the space’s Space settings > Automation.

  2. Select Create flow > Create from scratch.

  3. Add the Work item assigned trigger.

  4. In the trigger’s panel, select Add condition and add a User condition. Set User to Assignee, Check to perform to is, and Criteria to the docs owner.

  5. Add a Send web request action. Set Web request URL to https://api.gopromptless.ai/v1/triggers and HTTP method to POST.

  6. Set Web request body to Custom data, and enter the request body from Request body.

  7. Under Headers (optional), add the key Authorization with the value Bearer sk-pl-your-api-key, and select Hidden.

  8. Select Save and enable.

A Jira Automation flow with a Work item assigned trigger, a condition on the assignee, and a Send web request action, with the Send web request settings open beside it
{
"instructions": "Update the documentation for Jira ticket {{issue.key}}. Comment on the ticket with a link to the docs PR.",
"context": {
"jira_issue": "{{issue.key}}",
"jira_url": "{{issue.url}}"
}
}

If you want Promptless to know more about your ticket, you can include Jira smart values, such as {{issue.key}}.

  • instructions is required and tells Promptless what to do. Name the ticket, and add any standing guidance for this flow, such as which docs to update.
  • context is optional. It appears with the request in trigger history on the Triggers page.

To test the action before you save, expand Validate your web request configuration, enter a ticket key, and select Validate. Validating sends a real request, so Promptless starts a session for that ticket.

A request that starts a session returns 202 Accepted:

{
"trigger_event_id": "550e8400-e29b-41d4-a716-446655440000",
"deduplicated": false
}

The request then appears on the Promptless Triggers page with its instructions and context. For any other status, open the flow’s Audit log and see Error responses.