You must have the JIRA System Administrators global permission before you can carry out the instructions on this page.
The Conditional Rules Administration screen let you setup expression that you can apply on:
Approval Mappings and Single Issue Approval configurations, in order to require the approvals only if the condition returns true or let transition the issue if the condition returns true depending by the number of approbations or rejections
Approval E-mail Templates, in order to send emails with priority high when the condition returns true.
Notice that you can reuse a Conditional Rule across different Approval Mappings, Single Issue Approval and Approval E-mail Templates.
Overview
The Conditional Rules Administration screen looks like as follows:
The Conditional Rules Administration screen allows you to add, edit, delete and review your conditional rules configurations.
Furthermore, when moving the mouse upon the data under the Assigned Template,Assigned Mapping,Assigned Issues columns , a window, detaing when the Conditional Rule is applied, shows up.
Preliminary setup
Before you can create Conditional Rules, you must set up Conditional Rule Main Settings.
Click Main Settings on the top of the Conditional Rules Administration screen.
On the Conditional Rule Settingsscreen, fill the User field with an username that the add-on can use to evaluate the conditional rule.
When updating the selected user, the add-on remove the update the permissions accordingly.
The add-on will grant the selected user browsing privileges on any project.
How to add a Conditional Rule
Click Add Conditional Rule to create a new Conditional Rule.
Fill the fields showing up on the Conditional Rule Configuration screen
Rule Name (Required, Not modifiable)
Conditional Rule (Required), the fields expects a valid structured queries using the JIRA Query Language (JQL)
User used to evaluate the conditional rule
chose the option Super User, if you want that the Conditional Rule is evaluated via the credential of the user selected on the Conditional Rule Settings (Default)
chose the optionCurrent User, if you want that the Conditional Rule is evaluated via the logged user credentials
chose the optionReporter, if you want that the Conditional Rule is evaluated via the reporter credentials
chose the option Assignee, if you want that the Conditional Rule is evaluated via the assignee credentials
chose the optionProject Lead, if you want that the Conditional Rule is evaluated via the project lead credentials
select a single user picker custom field, if you want that the Conditional Rule is evaluated via the user selected on the selected user picker Custom Field.
You can choose only one of the options listed above.
Click thehand lens to to validate JQL syntax. A window let you know if the Conditional Rule is valid.