Skip to Content
Flower 3.3.2 is released 🎉
DocsConceptsTriggering Jira Automation with BPMN Events
Image

Sync Magic

Triggering Jira Automation with BPMN Events

Sync Magic: Triggering Jira Automation with BPMN Events

Jira Automation rules run in the background, which makes them hard to track. With a throw event in your BPMN model, an automation becomes a visible step of the process, and your team sees when and why it runs. A throw event can also call external services.

Why Trigger Jira Automation from Flower?

Jira Automation  lets you create event-driven rules that run predefined actions and reduce manual work. These rules run in the background, so it is often unclear when and why they ran.

If you call the rule from your BPMN model, the automation is part of the process flow:

  • Automation is visible in the process model.
  • Teams understand the trigger at a glance.
  • Workflows are more predictable and easier to track.

How It Works

Create a Jira Automation Rule

Create a rule with the Incoming webhook trigger and copy its webhook URL and secret.

Add a Throw Event to Your Model

Draw an intermediate throw event at the place in your process where the rule should run.

Enter the webhook URL in the properties panel of the event.

Create the Jira Automation Rule

Jira Automation lets you create custom rules that react to events. A rule can, for example:

  • Assign work items dynamically based on priority or category.
  • Update fields when specific conditions are met.
  • Send notifications by Slack, email, or Jira comments.
  • Link work items, create subtasks, or transition work items.

Email Example

Jira Automation Rule

The rule in the screenshot sends an email when the webhook is called. To connect Flower with this rule, copy the webhook URL of the trigger and paste it into the BPMN event in Flower.

Webhook URL and Secret

Atlassian requires a secret for the incoming webhook trigger. Atlassian accepts it either in the header X-Automation-Webhook-Token or at the end of the URL. Flower does not send custom headers, so add the secret to the end of the URL:

<webhook URL>/<secret>

Without the secret, the call fails.

⚠️

Treat the complete URL like a password. Everyone who can open the model can read it.

If your model still contains an old URL that starts with https://automation.atlassian.com/pro/hooks/, replace it with the current URL and secret from your rule. Atlassian retired this legacy endpoint on 30 May 2025.

Fire the Event from Your Model

In Flower, throw events call Jira Automation rules. When the process token reaches an intermediate throw event, the event sends its request. Then the token continues along the sequence flow.

To call a rule, enter the webhook URL in the properties panel of the selected event:

Jira Automation Rule

Intermediate Throw Events

You can use any BPMN intermediate throw event to fire a webhook:

IconEvent Type
ImageNone Throw Event
ImageMessage Throw Event
ImageSignal Throw Event
ImageEscalation Throw Event
ImageCompensation Throw Event
ImageLink Throw Event
ImageMultiple Throw Event

What Flower Sends

Flower sends an HTTP POST request with a JSON body that contains the key of the process instance:

{"issues": ["FLOWER-375"]}

Jira Automation understands this format: the rule runs for this work item. In the incoming webhook trigger, select the option that uses the work items provided in the web request. In the rule, you can read the data with the smart value {{webhookData}}.

An example request:

curl -X POST \ -H 'Content-type: application/json' \ "https://api-private.atlassian.com/automation/webhooks/jira/a/<id>/<id>/<secret>" \ --data '{"issues":["FLOWER-375"]}'
ℹ️

The request body will be more flexible in a future version of Flower.

Webhook Rules

RuleDetails
ProtocolThe URL must start with https://.
TargetThe target must be a public address. Internal addresses, such as localhost or private networks, are blocked.
CredentialsDo not put a user name and password in the URL.
RedirectsFlower does not follow redirects.
Response timeThe target should answer within about 10 seconds.
ResultFlower adds a comment to the process instance with the status code of the response. If the request cannot be sent, Flower adds a general error comment without technical details.

In Jira Data Center, you can also enter a path relative to the Jira base URL, and internal addresses are not blocked.

Connect External Services

The same mechanism calls external services, such as your own microservice or the incoming webhook of a chat tool. The target receives the POST request with the key of the process instance. The target must follow the webhook rules above.

Flower mainly integrates with the Atlassian ecosystem (Jira, Confluence, Bitbucket), and webhooks connect it to everything else.

Use Cases

ProcessWhat the rule doesBenefit
Change managementAfter a change request is approved, the rule links it to the related implementation tasks and updates its status.Better traceability and correct statuses without manual work.
IT service requestsThe rule assigns the work item to the right person, based on component ownership, workload, or fixed rules. If there is no match, it notifies a team lead.Work reaches the right person without delays.
Incident managementWhen an incident escalates, the rule adds a comment (“This incident has escalated to Level 2”) and sends a Slack or email notification.Faster response and less follow-up work.
Customer onboardingAfter a new client is approved, the rule creates a space from a template, configures work types, workflows, and permissions, and assigns the space lead.No manual space setup, and a structured onboarding.
Marketing campaignAt the end of a campaign, the rule moves related work items to a final status such as Closed, moves completed work items to an archive space, and notifies stakeholders.Jira stays organized, and old work items do not clutter active work.

What’s Next?

Last updated on