Rule Name :
'Rule Name' is used to uniquely identify each rule. Rule Name can not be duplicated.
In case you try to re-use an existing rule name, you will get a warning as shown below.
Mode Selection (Basic / Regex)
We have provided two modes "Basic Mode" & "Regex Mode" to parse the field logic / pattern mapping.
Mode provides users with the flexibility to input data freely in Basic Mode or utilize regular expressions in Regex Mode. This empowers users to define patterns according to their preferences. The following guide outlines the process of mode selection, the Pattern Mapping dialog box, and validation procedures in both Basic and Regex Modes.
The highlighted yellow area represents the Mode checkbox, with unchecked indicating Basic Mode and checked indicating Regex Mode. Default mode is Basic, checking the box switches to Regex. Multiple mapping rows can be added.
In Basic Mode, users can freely input data within curly braces "{value}" into the Pattern Field.
In Regex Mode, users can utilize regular expressions in the Pattern Field. You can refer Regex Helper Module to know about how to validate your regular expressions.
Pattern Field Validation:
The data will undergo validation if the Pattern Field is either empty or contains invalid data. In such instances, the Pattern field will be visibly displayed in an orange color. This validation process applies to both Basic and Regex modes.
If the 'Pattern' field is empty or not in the expected format when adding a pattern mapping, a popup message appears at the top, highlighting the respective field for user attention and correction.
After carefully selecting all the fields and ensuring that the specified condition in the Pattern field is met, proceed to click on "Add Pattern Mapping" to observe the newly created rule on the 'Configure Comment Handler' page.
Rule Priority
What if we have multiple rules defined which a which might be applicable for a particular Jira Event.
This comes into picture when you have rules defined for 'All Projects' and or 'All Issue Types' which are called 'Global rules' depicted with 'G'
Consider the four rules above. Imagine we are Creating a 'Task' in 'Business Project'.
Here even though all the rules match this Create Issue Event, the rule which is defined at the most fine grained level would take priority over Global Rule and would execute
Here the priority would be in the order : ddd > qqq > 111 > aaaaa
Please note: You won't be able to able to add multiple rules for the same 'Project' and 'Issue Type' combination.
In case you try to add the same, system would prompt you whether you wish to overwrite the existing Rule.
Clicking 'OK' would replace the previous rule with this new rule. Instead you may choose another Project/ Issue Type combination and proceed as well.