Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6261 add two vars to the alert template variable list #6262

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

rogin
Copy link

@rogin rogin commented Jul 19, 2024

Adds "serverName" and "environmentName" to the alert template variable list.
Requires Java 9+.
Requires an update to the documentation.

Test procedure:

  • Compile this patch with Java 9+ and start server
  • Login and get past initial account setup
  • Set Server Name and Environment Name under Settings tab
  • Import and deploy the two attached channels
  • Import the attached alert
  • Open the imported alert and validate two additional options are present on the right-hand side: "serverName" and "environmentName"
  • Validate the two additional options can be copied into the template text area
  • Send any message to channel "throws error"
  • Validate the resulting text in channel "Receiver" contains the Server Name and Environment Name as you defined in the Settings tab
  • Clear the Server Name and Environment Name under Settings tab, then re-run a message to ensure the alert template's values are replaced with empty strings

throws error.xml.txt
Receiver.xml.txt
Foo alert.xml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant