# Slack Notifications - Status missing info

**URL:** <https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763>\
**Category:** Integrations and Accounts\
**Created:** [July 20, 2020, 8:16pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763 "2020-07-20T20:16:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin-Credible](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/justin-credible/32/25321_2.png) [@Justin-Credible](https://discuss.circleci.com/u/Justin-Credible)\
**Post date:** [July 20, 2020, 8:16pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/1 "2020-07-20T20:16:35Z")

</div>

(I’m new to the CircleCI platform, so please correct me if any assumptions below are incorrect)

We’ve recently been notified that the “legacy Slack Notification settings will not be available in the new UI” via [this post](https://discuss.circleci.com/t/access-to-the-old-ui-will-be-shut-down-on-august-14th/36673).

I attempted to follow step 1 (“Remove the Slack webhook url from the legacy chat notification page”) by editing the URL to contain our organization name and project names. However I cannot seem to get to the old UI. Clicking on links on this page results in the following message:

> Error! GraphQL error: Received a 404 from the /api/v2/project/github/ORG/PROJECT/envvar api.

I’ve decided to skip that step for now.

I’ve enabled the new Slack integration as per step 2, **but the new integration seems to be missing a lot of information that made the status notifications useful.**

Here’s what the old and new notifications look like:

![old_vs_new](https://global.discourse-cdn.com/circleci/original/3X/4/e/4e4639ce58e5796d954c62c8ac8710448e6af1bc.png)

Notice the lack of links to the repo, branch, and commit as well as it not showing the commit message or author.

I’ve looked at the documentation for the orb [here](https://circleci.com/orbs/registry/orb/circleci/slack#commands-status) but I don’t see any way to have it show all of the information that the old integration used to show.

Am I missing something here?

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [July 21, 2020, 3:25pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/2 "2020-07-21T15:25:38Z")

</div>

Hi @Justin-Credible. Welcome to the CircleCI community!

Try temporarily switching to the legacy UI (as outline [here](https://support.circleci.com/hc/en-us/articles/360047237534-Switching-to-CircleCI-s-Old-UI-and-back-to-the-New-UI-)) before attempting to access the URL [https://circleci.com/gh/ORGNAME/PROJECTNAME/edit#hooks](https://circleci.com/gh/ORGNAME/PROJECTNAME/edit#hooks)

_The linked Support article also explains how to go back to the new UI._

In case you’re still having trouble removing the Slack webhook url from the legacy chat notification page, please [open a Support ticket](https://support.circleci.com/hc/en-us) so we can further investigate.

Regarding the **new Slack notification** , the message you’re seeing is the default `success_message`, as per the [orb source](https://circleci.com/orbs/registry/orb/circleci/slack#commands-status).

However, you can customise it to suit your needs. For example, you could retrieve and store the commit message and the author name in variables during the build, and then refer to those variables in the `success_message` parameter:

`COMMIT_MESSAGE=$(git log --format="%s" -n 1 $CIRCLE_SHA1)`  
`COMMIT_AUTHOR=$(git log --format="%an" -n 1 $CIRCLE_SHA1)`

And when calling the `status` command of the Slack orb, the `success_ message` parameter would be:

`success_ message: ' $COMMIT_AUTHOR\'s $CIRCLE_JOB job (message: $COMMIT_MESSAGE) has succeeded!'`

You can find more `git log` specifiers [here](https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History)

---

<div class="post-metadata">

**Author:** ![Justin-Credible](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/justin-credible/32/25321_2.png) [@Justin-Credible](https://discuss.circleci.com/u/Justin-Credible)\
**Post date:** [July 21, 2020, 8:55pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/3 "2020-07-21T20:55:11Z")

</div>

Thank you, I was able to get to the old UI to adjust the old Slack integration.

As for the notifications via the Slack Orb… how do we have the notification sent when a job fails that has parallelism? If I add the orb at the bottom of the job we are alerted of successes and failures on _each node_, when the previous integration only alerted us once all of the nodes in the job finish.

---

<div class="post-metadata">

**Author:** ![Justin-Credible](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/justin-credible/32/25321_2.png) [@Justin-Credible](https://discuss.circleci.com/u/Justin-Credible)\
**Post date:** [July 23, 2020, 3:04pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/4 "2020-07-23T15:04:53Z")

</div>

Let me rephrase that. Ignoring the content of the message, is there a way to get the _behavior_ of the old messaging?

The old behavior was to send a single success or failure message for the _workflow_. However, using the new orb it appears we have to insert that as a _job_ stop, which results in a success and/or failure message for each job (which is then further compounded for jobs that have parallelism set).

We just want a single success/failure message for a workflow run, like we used to have. How do we do that?

---

<div class="post-metadata">

**Author:** ![Justin-Credible](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/justin-credible/32/25321_2.png) [@Justin-Credible](https://discuss.circleci.com/u/Justin-Credible)\
**Post date:** [July 29, 2020, 4:02pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/5 "2020-07-29T16:02:38Z")

</div>

@yannCI Are you or someone else at CircleCI able to answer the follow up question above?

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [July 29, 2020, 4:57pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/6 "2020-07-29T16:57:36Z")

</div>

You could run another job that pings the API and waits for all jobs in the workflow to finish.

I haven’t tested this, and it looks incomplete, but there is the [start of a 3rd party project Orb](https://github.com/mkly/end-of-the-jobs-orb/blob/master/src/scripts/source.sh) that tries to run another job that tracks the workflow. Maybe you could take a look and see if it would give you some ideas for a solution you could implement.

---

<div class="post-metadata">

**Author:** ![Justin-Credible](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/justin-credible/32/25321_2.png) [@Justin-Credible](https://discuss.circleci.com/u/Justin-Credible)\
**Post date:** [July 29, 2020, 5:50pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/7 "2020-07-29T17:50:21Z")

</div>

Thanks for the suggestion.

Please consider adding official support for this, without using an orb or external job.

To re-iterate: this is currently working, today, built-in to CircleCI. It’s disappointing to hear that it’s being deprecated without an official replacement.

Am I thinking about this the wrong way? Our developers push code and then get notified in Slack if the workflow was a success or failure. That seems like a pretty common use case, which I assume was why it was built into CircleCI to begin with.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [August 8, 2020, 5:50pm UTC](https://discuss.circleci.com/t/slack-notifications-status-missing-info/36763/8 "2020-08-08T17:50:29Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
