Rules

What are rules?

Rules is where you automate the release notes generation process.

In essence rules are a collection of actions tied together by a trigger. Each rule can have one trigger & multiple actions. There can be multiple rules in in-project as well as on the cross-project screen.

 

Rule1.png

Each rule will have Rule details - a Name, a flag that identifies if the rule is enabled & a corresponding Trigger. 

Rules by themselves don’t do much. Know more about https://amoeboids.atlassian.net/wiki/spaces/ARN/pages/84541493 https://amoeboids.atlassian.net/wiki/spaces/ARN/pages/304807972

Rules can only be created at the local & cross-project level.

That is:

  • An in-project rule can only be used, edited, deleted in the project in which it is created AND

  • A cross-project rule can only be used, edited, deleted from the cross-project screen.

In-project vs Cross-project

Columns on the Rules page

  • Trigger - This displays what trigger is selected in the rule

  • Name - Name of the Rule

  • Actions - It shows the actions within the rules (indicated with icons)

  • Last used - Date when the rule was used

  • Enabled - Whether the rule is Enabled/Disabled

  • Last modified by - User who modified the rule

  • Last modified date - Date when rule was last modified

Create a rule

Click on the Create button from the Rules tab on the ARN screen.

rules2.png

You will be brought to the create rule screen. Add relevant information, along with one or more actions & save the rule.

When you add actions, these actions are executed in the sequence of the order you have organized them. For eg. There is rule with actions like Email, Confluence, LinkedIn announcements, and publish-to-release notes. Based on their order rules are executed You can reorder them by simple drag and drop.

Set up email notifications in case of Rule action failure

Read https://amoeboids.atlassian.net/wiki/spaces/ARN/pages/3900473347 for more details about this setting.

Edit a rule

An existing rule can be edited by clicking on the rule name link from the list.

This will bring you to the rule edit screen, which is the same as that of create - except, that data is pre-populated for the current rule. Make any required changes in the rule or actions and click on Save both rule and actions based on where you made changes.

Clone a rule

Click on the Clone icon available for a rule.

This will open a pop-up where rule of the new name can be dictated. By default, Clone text is appended to the original rule’s name.