Send information from an incident using a linked template
This article describes how to connect a send alert button in an incident template to an alert template, so that the alert is filled with information the user enters during the incident.
Prerequisites
- You are an administrator in MyMurphy.
- The alert template is created and Availability in Incidents is selected.
- The tags in the alert template, for example
{{Situation summary}}, are in place. - The incident template has the free text fields that the alert should use.
Step 1: Plan the free text fields
Write down which information from the incident should go into the alert and which free text field each piece comes from. A button can only pull text from free text fields on the same tab as the button. If the information is on another tab, move or copy it to the button’s tab.
Step 2: Open the incident template
Open the incident template and go to the Components tab. Click the tab where the button should be placed. Each tab has a three-dot menu. Use Add tab + to add a new tab.
Step 3: Add the button
Click Add component + and select SendAlertButton in the list. The button then appears on the tab.
Step 4: Set up the button
Click the three dots on the button and select Edit. The dialog has three parts:
- Title: Enter the button name, for example “Inform the crisis management team”.
- Alert Template: Type a few letters in the drop-down list and select the correct alert template.
-
Dynamic tags: Each tag in the alert template gets its own drop-down list. For each tag, select the free text field in the incident template that should fill it. For example,
{{Situation summary}}is connected to the free text field where the situation is described, and{{Actions and support needed}}to the free text field for actions.
Click Save to save.
Step 5: Select the right free text field
The drop-down lists only show the free text fields in the template, and each field is shown with the text that happens to be entered in it. Two fields can therefore look the same. Check that you select the field that should be used for each tag. The field’s position on the tab and its order in the list will help you find the right one.
Step 6: Save and verify
Reload the page after saving and check that the button shows the correct connections. The field each tag is connected to is shown under the button’s name. Also check that all tabs contain the correct text.
Step 7: Test
Start a test incident, type into the free text fields, and press the button. Check that the recipients receive the message and that each tag contains the right information. If a tag is wrong, go back to step 4.
Common mistakes
- The button is on a tab where the free text fields are not located.
- The tag name in the alert template does not exactly match the one in the button.
- The alert template is not marked as available in incidents, so it does not appear in the list.
- The wrong free text field is selected and the mistake is not caught, because the test is skipped.