ChatOps Event
These 'Pulse Rule' samples sends a message to Slack or MSTeams which will notify a channel or person. For example, if you would like to notify a particular ChatOps channel when a Jira task has been added, you can set that Pulse Rule up here. A webhook must be configured in your chosen ChatOps product.
Pulse Rules
Slack Message.js
Set up 'Rules' for your own 'Trigger' (webhook) and use the sample 'Actions' provided below.
Setup Pulse Rule
-
Review the qTest Pulse Quick Start Guide for your version of Pulse for complete instructions on how to add Pulse Triggers, Actions, and Rules.
-
Enter the sample Program Code in the Pulse Actions.
For the most up-to-date sample program code, view the Pulse Rules repository.
Constants
Anything that uses constants.X will need your own constants value.
-
constants.ChatOpsWebHook
Variables
slack_webhook
Slack Attachment.js
This is to attach large payloads to a Slack file attachment to bypass the Slack message character limitation as well as the Pulse console.log length limitation.
Set up 'Rules' for your own 'Trigger' (webhook) and use the sample 'Actions' provided below.
Setup Pulse Rule
-
Review the qTest Pulse Quick Start Guide for your version of Pulse for complete instructions on how to add Pulse Triggers, Actions, and Rules.
-
Enter the sample Program Code in the Pulse Actions.
For the most up-to-date sample program code, view the Pulse Rules repository.
Constants
Anything that uses constants.X will need your own constants value.
-
constants.SlackToken
-
sonstants.SlackChannelID
Variables
-
SlackToken
-
SlackChannelID
MSTeamsMessage.js
Set up 'Rules' for your own 'Trigger' (webhook) and use the sample 'Actions' provided below.
Setup Pulse Rule
-
Review the qTest Pulse Quick Start Guide for your version of Pulse for complete instructions on how to add Pulse Triggers, Actions, and Rules.
-
Enter the sample Program Code in the Pulse Actions.
For the most up-to-date sample program code, view the Pulse Rules repository.
Constants
Anything that uses constants.X will need your own constants value.
-
constants.ChatOpsWebHook
Variables
teams_webhook