Skip to Content
Flower BPM 3.8.0 is released 🎉 See what's new
DocsGuidesLet a Rule Do a Task
Guides· 5 min read· Updated November 2026

Hand it to a rule: let Jira Automation do a task

Not every step of a process needs a person. Checking the credit limit, sending the contract, asking another system: a rule can do that. In Flower BPM such a step is an automated task: a service, script, send or business rule task with the tick Wait for Jira Automation.

When the process reaches the task, Flower BPM starts a Jira Automation rule and waits. No work item is created. The rule does the work and reports the task done, with a result if you want one. Then the process goes on, and a gateway can decide with the result.

đź“–

Reference: Automated Tasks describes the task types, and Flower BPM and Jira Automation the whole round trip with the rule on Jira Cloud and Data Center.

The round trip

  1. The process starts the rule. The token reaches the task. On Jira Cloud (the Forge app), the process instance gets the comment Flower Automation Event: <name of the task> and the property flowerAutomation. On Data Center, Flower calls the webhook URL of the task, or writes the same comment when the task has no webhook URL.
  2. The rule does the work. It calls a web service, sends an e-mail, changes other work items, or asks an AI agent.
  3. The rule reports the task done. On Jira Cloud it ends with the action Flower: Complete automated task. On Data Center it ends with Send web request to the REST API of Flower.
  4. The process goes on. Flower keeps the result at the process instance and names it in a comment.

This is the difference to a throw event: a throw event starts a rule and goes on at once. An automated task waits until the rule answers.

Set up an automated task

The example: a service task Check the credit limit asks a credit service and continues with its decision.

Model the task

In the Flower modeler, add a service task and name it Check the credit limit. In the properties panel, group Jira Automation, the tick Wait for Jira Automation is set for every new task of this type. Keep it. Publish the model.

Create the rule that does the work

On Jira Cloud, create a rule with the trigger Work item commented and the condition Advanced compare: {{comment.body}} contains Flower Automation Event: Check the credit limit. On Data Center, use the trigger Incoming webhook and enter its URL in the properties panel of the task. Then add the work, for example Send web request to the credit service.

Report the task done

On Jira Cloud, add the action Flower: Complete automated task. Keep Work item as {{issue.key}}, and set Result to the answer of the service, for example {{webResponse.body.decision}}. On Data Center, send POST /rest/flower/latest/service/automatedTask with the key of the work item, the id of the task and the result.

Decide with the result

Add a gateway after the task. Give its paths conditions on the result, for example ${pi.properties.flower.results.Activity_check.result == 'approved'}, where Activity_check is the id of the task. Give the gateway a default flow as well.

The rule builder of Jira Automation: the trigger Work item commented, then the action Flower: Complete automated task with the inputs Work item, Task, Result and Error code

The inputs of Flower: Complete automated task:

InputValue
Work itemThe process instance or one of its work items, default {{issue.key}}
TaskOptional: the id of the automated task. Leave it empty when only one automated task of the process instance waits
ResultOptional: the result for a gateway after the task
Error codeOptional: takes the path of the error boundary event with this code

The action is part of the app. The first time someone adds an action of Flower to a rule, Jira asks the rule author to connect the app for the site, once per site. The request on Data Center, its body and its answers: The REST API of Flower.

When the rule fails or takes too long

An automated task can have boundary events like any other task:

  • Error code: the rule reports the task done with an error code, and Flower takes the path of the error boundary event of the task with this code. For example, the rule sets the error code when the credit service does not answer.
  • Timeout: a timer boundary event on the task is its timeout. If the rule does not report the task done in time, the timer path starts.

If the rule names a wrong task id, or a task that does not wait, Flower names it in a comment on the process instance.

Who may report a task done

The actor of the rule must be able to edit the work item and its process instance. Otherwise the action sends nothing, and the audit log of the rule shows why. On Data Center, the web request must be authenticated as a Jira user with this right, for example with a personal access token. A request without it gets the answer 403.

Good to know

  • Without the tick, Flower passes the task: the process goes on at once without doing anything, and the validator warns.
  • Flower never runs the script of a script task. No code of a model runs on the server. The rule does the work.
  • A business rule task with a decision evaluates the decision instead. Wait for Jira Automation does not apply to it.
  • The task can repeat. An automated task with Wait for Jira Automation can carry a loop marker with a loop condition, see Repeat a step.
  • Once per item of a list: an automated task and two rules run a step once per person or item, see Once per Item of a List.

Frequently asked questions

Does an automated task create a work item?

No. The process waits at the task without a work item. The comments on the process instance show when the rule started and which result it reported.

Which task types can wait for Jira Automation?

The service task, the script task, the send task and the business rule task. A receive task waits for a message instead, see Messages and signals.

Can an AI agent do the task?

The rule that the automated task starts can ask an AI agent, like any rule that Flower starts. How a rule lets a Rovo agent do a step of the process: AI Agent Steps.

Does it work on Jira Data Center?

Yes. On Data Center the task calls the webhook of the rule, and the rule reports the task done with a web request to the REST API of Flower.

Read more

Last updated on