Solved

Example Slack integration?

  • 27 October 2021
  • 3 replies
  • 74 views

Greetings,


I’d like to use the Subscription option to send notifications to a Slack channel. Most of the fields make sense but I am stuck on Content Type and Payload.

I searched in Documents but didn’t find anything that covered Subscriptions. Did I miss it?

 

-David

 

icon

Best answer by Dash 27 October 2021, 22:55

View original

3 replies

Userlevel 6
Badge +3

You’re welcome!

Thank you very much.

-David

 

Userlevel 6
Badge +3

Hi @dkovar!

The actual payload might depend on the trigger event type, but here’s an example of my Subscription where I am sending a Slack notification when a pipeline gets committed via “Check-In” option in the pipeline canvas.

{
"Alert_Name": "New Pipeline Version Committed",
"Pipeline_ID": "{{PIPELINE_ID}}",
"Pipeline_Version": "{{PIPELINE_VERSION}}",
"Pipeline_Name": "{{PIPELINE_NAME}}",
"Pipeline_Committer": "{{PIPELINE_COMMITTER}}",
"Pipeline_Commit_ID":"{{PIPELINE_COMMIT_ID}}",
"Pipeline_Commit_TS": "{{PIPELINE_COMMIT_TIME}}"
}

Here’s a screenshot of the Subscription config.

 

Reply