/
Actions

Actions

What are actions?

When a rule is triggered, what it does is determined by actions defined inside of the rule. ARN currently supports following types of actions.

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

Send email

This action lets you select an email template along with the list of users that are supposed to receive the mail.

Users can be added in the form of

  • Jira users

  • Project roles

  • Jira groups

  • Issue users

  • Email addresses

  • Integration (This will allow you to send emails to users from Salesforce)

Reply to & Email from parameters are used in the final email sent to the recipients. If Send email as Bcc is checked, it will add all the user email addresses in Bcc so that they are not transparent.

action.png

For cloud version of the app, it is possible to configure the email address from which ARN emails are generated.

Once you are done Setting up SMTP (to send emails via your company domain), that specific email address can be chosen from the email action - using the ‘Send via email’ selector.

Attachments

Send email with PDF attachment

Release notes in PDF format can be attached to an email. Within the send email action (same as above), there is a pdf template selector. Rest of the action parameters remain same as those of email. At the time of rule execution, a pdf is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in Email template dropdown.

Here is how to save the PDF release notes directly to a cloud storage platform such as Google drive, Box, Dropbox etc - Other integrations

Send email with Markdown attachment

Release notes in markdown format can be attached to an email. Within the action send email (same as above), there is a markdown template selector. Rest of the action parameters remain same as that of email. At the time of rule execution, markdown is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in Email template dropdown.

Send email with JSON attachment

Currently release notes in JSON format can be attached to an email. Within the action send email (same as above), there is a JSON template selector. Rest of the action parameters remain same as those of email. At the time of rule execution, JSON is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in Email template dropdown.

Send email with HTML attachment

Currently release notes in HTML format can be attached to an email. Within the action send email (same as above), there is an HTML template selector. Rest of the action parameters remain same as those of email. At the time of rule execution, HTML is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in Email template dropdown.

Send email with Word attachment

Currently release notes in Word format can be attached to an email (This feature is in Beta). Within the action send email (same as above), there is an Word template selector. Rest of the action parameters remain same as those of email. At the time of rule execution, Word doc is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in Email template dropdown.

Send email with PowerPoint attachment

Using MS PowerPoint template one can generate an email with a PowerPoint presentation containing release notes. Within email action, there is a MS PowerPoint template sector. Select relevant template and rest of the details in action remains same. At the time of rule execution, PopwerPoint presentation is generated using the selected template & sent as an attachment to the release mail. This release mail is generated using the template set in the Email template dropdown.

Publish to Confluence (Legacy editor)

Publish to Confluence action takes the Confluence template as an input parameter along with the space key & parent page id. While space key is mandatory, the parent page ID is not. If the parent page id is not provided, the release note page will be created without a parent in Confluence.

Do keep in mind that if space key is not valid or if the parent page id is not valid, relevant errors will be shown in the logs & the action will fail.

There are a few possibilities based on the action configured -

  • Create new Confluence page/blog

    • ARN will try to create a new Confluence page/blog & the action will fail if the page with same title already exists.

  • Update an existing Confluence page/blog

    • ARN will check if a page/blog with the given title (based on Confluence template in that action) already exists

      • doesn’t exist - new Confluence page/blog will be created

      • does exist - existing Confluence page/blog will be updated

  • Append to existing page/blog

    • ARN will append release notes content to an existing page/blog. ‘Dynamic section end’ text will be used to identify string before which content will be added. If it is left empty, then content is added to the bottom of the page

  • Prepend to existing page/blog

    • ARN will prepend release notes content to an existing page/blog. ‘Dynamic section start’ will be used to identify string after which content will be added. If it is left empty, then content is added to the start of the page

  • Parent page id

    • ARN will create a new child page under the page as per the parent page id

  • Labels

    • Multiple labels can be associated with Confluence action. These labels will be used while creating/updating the page/blog in Confluence. Do note that space is not allowed within these labels.

  • Skip subsequent actions if this action fails

    • This option prevents subsequent actions from running if the current (parent) action fails.

Use page created/updated in the previous action as a parent page

  • It's possible to create both parent and child Confluence pages using the same ARN rule. What you have to do is, under a single ARN rule, add two Confluence actions. The first action will create a new Confluence page. The second Confluence action will create a child page under the page created through the first Confluence action.

  • It is also possible to create a Confluence page through a Confluence rule action and then append/prepend this page through a subsequent Confluence action within the same ARN rule.

For both the above use cases, simply choose the previous Confluence action under the parent page setting, and you're done.

Publish to Confluence (with new editor) (Recommended approach )

This is another approach we have implemented to support the new Confluence editor. Read https://amoeboids.atlassian.net/wiki/x/A4DW6 for all the steps along with this Rule action details.

Create an entry in the Release page or Widget

Release page & widget actions are now available within ARN rules. Simply provide a name for the action & choose a corresponding release page/widget. That's it. Now every time this action is executed, a new entry (we call that a 'release') is created for that release page/widget. Content of this 'release' is dependent on the JQL you've configured for the release page/widget. More about that here.

POST to external endpoint pre-defined URL (HTML, JSON, Markdown, Slack)

HTML, JSON, Markdown, PDF, MS PowerPoint

In order to directly publish the release notes on a different platform or to further process them, ARN supports the possibility of POSTing the JSON, HTML, Markdown, PDF, or MS PowerPoint to a pre-defined URL. Depending on whether the endpoint requires authentication or not, you can enter username & password.

Slack

Once you are done withSetting up Slack integration, you can use the dedicated Send to Slack that is available under the rules. Fill out all the necessary information like Slack template, Slack connection name, Slack channel. Once the rule action is executed, the release notes will be posted to the selected channel.

If you want to share release notes on multiple channels, add a separate rule for each channel.

Using POST action

Once you have created