How to Export the Rules ?
Now you can take the backup of the rules by Exporting them.
Click on ‘Export’ button in the Configuration Page to Export the rules.
Then you will get a text file with the name 'fej-config' which consists of the rule details. You can utilize this file whenever you required the rules by Importing the file. The steps are explained below.
How to Import the Rules ?
Click on ‘Import’ button in the Configuration Page to Import the rules
Then you should be directed to your local directory, where you have to select the text or json file which is exported previously
After selecting the file you will get a pop up window as shown below
The Import dialog box will display the details like Check box, Rule Name, Project Name & Issue Type details
Select the required rules by checking the check box as shown above to Import the rules. You can check the ‘Select All Rules' check box to select all the rules to Import them. Then click on ‘Import Rules’ button to save the selected rules.
You would be prompted with a confirmation message. Click 'Ok' to view the saved rules.
Validating the rules while Importing
After selecting the rules & hitting on ‘Import Rules’ button, The rules will be validated such that,
-The rule names and Project & Issue Type combination should be unique
-The pattern in the file should consist the string ‘{value}’
- The ‘Project’, ‘Custom field’ in the pattern & 'User’ in Run as User in the selected rules are not present in the system
You will be prompted with the alert message displaying for all the failed validations
Make sure to make the necessary changes to the file that you are selecting the rules. You will not be able to Import the rules with the failed validations.