Jira holds the keys: roles and permissions
Flower BPM has no roles of its own. Models, decisions, process instances and tasks are Jira work items, so Jira’s permissions decide who sees and changes them. Flower checks a Jira permission itself only in a few places: the settings, the timer job, publishing on Forge, and everything that sends a message, a signal or a result into a running process. This page lists every permission behind Flower BPM. The guide Permission Handling explains the idea with an example.
Who acts
Three kinds of actors work with Flower BPM. Each one needs its own permissions.
| Actor | Who it is | What it does |
|---|---|---|
| Jira administrator | A person with the global permission Administer Jira | Changes the Flower Settings and runs the timer job |
| A person | Any signed-in Jira user | Models, starts processes, works on tasks, sends messages and signals. Jira checks the permissions of this person. |
| The Flower app user | Jira Cloud: the app user that Jira creates when Flower is installed, shown as Flower. Data Center: the technical user of the tab Data Center (personal access token, or username and password). | The engine: creates the work items of tasks, moves the process on, writes comments, handles timers |
Flower never gives a person more access than Jira does. A person who starts a process does not need access to the spaces of its tasks: the Flower app user creates them.
Jira administrators
These actions need the Jira administrator permission. Flower checks it for the person who acts, not for the app.
| Action | Jira Cloud | Data Center |
|---|---|---|
| Change the Flower Settings, including the work type mapping, usage analytics and the Data Center connection | Administer Jira (asked as the person) | Global permission Jira Administrators |
| Run timer job once | Administer Jira | Global permission Jira Administrators |
Read the secrets of the Data Center connection (pat, flowerUserPw) | Global permission Jira Administrators; everybody else gets the settings without them | |
| Create space “Flower” on a site without a space | Jira’s own rule: only a Jira administrator may create a space | Same |
| Show the Flower panel on every work item | A Jira administrator, see Setup | Not needed |
The settings page itself opens for every user. Its fields and buttons are disabled for people who are not Jira administrators.
How each host checks, and what it answers
| Jira Cloud | Data Center | |
|---|---|---|
| Check | GET mypermissions?permissions=ADMINISTER, called as the person (resolvers setSettings, runTimerJob) | GlobalPermissionManager.hasPermission(ADMINISTER) for the signed-in user (PUT /rest/flower/latest/service/property/settings, POST …/runTimerJob) |
| Refusal, settings | Insufficient permissions: only Jira administrators can change the Flower settings. | 403 Only Jira administrators can do this. |
| Refusal, timer job | Insufficient permissions: only Jira administrators can run the timer job. | 403 Only Jira administrators can do this. |
| Read the settings | Every signed-in user | Every signed-in user (GET …/property/settings); 404 when the setting does not exist |
Permissions of people
Jira checks these permissions for the person who acts. The names are those of Jira Cloud; Jira Data Center calls them Browse Projects, Create Issues, Edit Issues and so on.
| What you do | Permission you need | Where | Checked by |
|---|---|---|---|
| See models and decisions in the repository | Browse projects | The space of the model | Jira: the repository searches with JQL as you and lists only what you can see |
| Create or import a model or decision | Create work items | The space of the models, with the work type of the models (settings, or Advanced Options of the dialog) | Jira; required fields and validators apply |
| Save a draft, publish, restore a version, archive a model | Edit work items | The work item of the model | Jira: drafts and versions are work item properties, archiving sets the label archive |
| Start a process (start dialog, template, Launch) | Create work items | The space and work type of the process instance | Jira; required fields and validators apply |
| Start a process with a new work item (work type mapping) | Create work items | The mapped space and work type | Jira; the Flower app user then turns the work item into a process instance |
| Work on a task | Browse projects, Transition work items, and what the Jira workflow asks for (Resolve work items, assignee, conditions) | The space of the task | Jira |
| See the Flower panel of a work item | Browse projects | The space of the work item | Jira |
| Add the Flower panel with the Apps button (Forge) | Edit work items | The work item | Jira |
| See the reporting and the model report | Browse projects | Every space whose work items should be counted | Jira: the numbers come from JQL searches as you |
| Read the Flower Settings | Signed in | Flower (Data Center: without the secrets) | |
| See the work type mapping | Browse projects | The mapped spaces | Jira: a row you cannot see shows no access or not available |
A Jira workflow that denies editing in a status (for example with the property jira.permission.edit.denied) also blocks saving the draft of a model in that status. Use a condition on the transition instead, see Approve Models.
Messages, signals and automated tasks
Everything that sends something into a running process from outside checks one permission: the sender must be able to edit the work item. For a message or an automated task, the sender must also be able to edit its process instance. Flower reads the process instance from the work item property flower, which every editor of a work item can set; the second check makes sure that nobody reaches a process of another space this way.
| Way | Checked for | Message | Signal | Automated task |
|---|---|---|---|---|
Comment @FlowerBPM <name> or @FlowerBPM signal <name> | The author of the comment. Writing the comment needs Add comments. | Edit work items on the commented work item and on its process instance | Edit work items on the commented work item; the signal reaches only the process instances the author can edit | |
| Jira Automation actions (Forge): Flower: Send message to process, Flower: Send signal, Flower: Complete automated task | The actor of the rule | Edit work items on the work item and on its process instance | Reaches only the process instances the actor can edit | Edit work items on the work item and on its process instance |
REST API of Data Center: POST /rest/flower/latest/service/processMessage, …/processSignal, …/automatedTask | The signed-in user of the request | Edit Issues on the work item and on its process instance | Signed in; reaches only the process instances the user can edit | Edit Issues on the work item and on its process instance |
| Throw or end event of a process | Nobody: the process itself sends it | Reaches every process instance that waits for it |
When the check fails, Flower sends nothing:
| Way | What you see |
|---|---|
| Comment | A warning comment: The comment names the message … but only a person who can edit … sends messages to processes. |
| Jira Automation action | The rule fails with Flower: the actor of the rule cannot edit …, nothing was sent, or Flower: the actor of the rule is not known, nothing was sent |
| REST API of Data Center | 403 with {"error": "you cannot edit … and its process instance …"}, or {"error": "log in to send a signal"}; 400 when issueKey or name is missing |
Comments that never count
- A comment of an app account. On Jira Cloud this includes the default actor of Jira Automation, Automation for Jira: a rule that should send by comment must act as a person. The Jira Automation actions above work without this.
- A comment of Flower itself. On Data Center the author is the technical user of the settings; Flower recognizes its own comments by their form and ignores them.
- The same comment a second time. Forge sends an event when a comment is added and when it is changed; Flower handles each comment once.
- A Jira Service Management customer who can comment but cannot edit the work item does not send a message.
See Message Events and Jira Automation.
REST APIs
| API | Hosts | Permissions |
|---|---|---|
Flower REST API (https://api.flower-bpm.com) | Every Jira Cloud site | The call runs with the permissions of the API user (Jira e-mail and API token). See the table in Flower REST API. |
REST API of Data Center (/rest/flower/latest/service/…) | Data Center | Messages, signals and automated tasks: see above. Settings and timer job: Jira administrators. |
| Jira REST API | All | The permissions of the Jira user, as for any call. Start a process by creating a work item of a mapped work type, read Flower data with JQL. |
The Flower app user
The engine of Flower BPM works in the background as the Flower app user, not as the person who started the process. Changes of the engine appear in the history of a work item under the name Flower (on Data Center: the name of the technical user).
| What the engine does | Jira permission it needs | Where |
|---|---|---|
| Reads models, process instances and work items, searches with JQL | Browse projects | Every space of models, process instances and tasks |
| Creates the work items of tasks and of sub-process instances | Create work items | Every space and work type that tasks, lanes and call activities use |
| Writes fields, the summary of a sub-process instance, labels and work item properties (the state of the process) | Edit work items | The same spaces |
| Sets the due date from a timer or a target duration | Schedule work items | The spaces of the tasks |
| Moves work items to another status and resolves the process instance | Transition work items, Resolve work items | The spaces of the process instances and tasks |
| Assigns a task to the assignee of its lane | Assign work items; the assignee needs Assignable user | The spaces of the tasks |
| Links the work items of a process | Link work items | The spaces of the process instances and tasks |
| Writes notes, warnings and errors as comments | Add comments | The spaces of the process instances and tasks |
Jira Cloud: Jira gives the app user its access through the project role atlassian-addons-project-access in the permission schemes of your spaces. If you remove this role from a permission, for example Create work items, Flower cannot create work items in that space and writes an error comment on the process instance. If your site moved from the former Connect app, check the permissions of the new app user, see Moving to Atlassian Forge.
Data Center: the technical user needs these permissions in every space where processes work. It is the reporter of every work item Flower creates. When it has no access to a target space, an operation can fail without a visible error. See Flower for Jira Data Center.
What the Forge app may access (scopes of the manifest)
Atlassian shows these scopes when a Jira administrator installs or updates the Forge app. They limit what the app can do at all; the Jira permissions above decide where.
| Scope | Used for |
|---|---|
storage:app | The Flower Settings and the state of the app (edition, previews, the move from the former Connect app) |
read:jira-work, write:jira-work | Reading and writing work items, properties, comments and links |
read:jira-user | Users in the settings, lanes and assignees |
manage:jira-project | Create space “Flower”; the counterpart of PROJECT_ADMIN of the former Connect app |
manage:jira-configuration, delete:issue:jira | The counterparts of the scopes ADMIN and DELETE of the former Connect app |
write:attachment:jira, read:attachment:jira, delete:attachment:jira | Not in use: publishing no longer attaches the BPMN file to the model |
read:email-address:jira | The counterpart of ACCESS_EMAIL_ADDRESSES of the former Connect app, so that the update needs no new approval |
The app also calls *.posthog.com for usage analytics, from the browser and from the engine, with no end-user data in scope. See Usage analytics.
Related pages
- Permission Handling: the guide, with an example across three spaces.
- Flower Settings: every setting, and who can read and change it.
- Limits and Host Differences: every difference between Jira Cloud and Data Center.