Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable make Slack notifications for custom transitions work with Jira?

Krishnan August 22, 2018

I recently configured Slack Integrations for Jira (Project > Settings > Slack Integration) to post notifications to Slack when an issue transitions to "In Progress", "Done" or "Code Review" (Code Review is a custom Status).

"In Progress" and "Done" notifications get posted in the Slack channel perfectly fine. But transitions to "Code Review" do not. I've checked "Events" and "Notifications Scheme" too; tried adding "All Watchers" to the respective transition event. Didn't work.

Stranger things... When I checked via the "Notification Helper":

  1. I selected "Jira Cloud for Workplace <jira-workplace-integration@connect.atlassian...>" as the User.
  2. I chose an issue and "Code Review" transition
  3. The result came out to be negative, that Jira Cloud does not receive notifications.
  4. The same results came up even for "Done" or "In Progress" transitions.
  5. The same results came up when I selected "Slack for Jira <jira-slack-integration@connect...>" as User.

So, I can see that Slack Jira Integration is independent of my notification scheme.

Final Question: what am I missing or what more do I need to do to make such custom transitions shoot out notifications to my Slack channel?

Thanks.

1 answer

1 accepted

2 votes
Answer accepted
Krishnan August 24, 2018

Found the solution.

In my workflow (Issue Settings > Workflow), the custom Status "Code Review" had a custom transition with a custom "Event" set in its "Post Functions". When I changed that back to Fire "Generic Event", I started getting the notifications.

I also tried adding either of these specific Users, "addon_jira-slack-integration" and "addon_jira-workplace-integration", to my custom Event notification but that did not work. So, in summary, I can safely say that Slack Jira Integration does not work with custom events.

Just for additional reference:

  1. Custom Workflow and Workflow Transitions can be created by going to Site Administration > Jira Settings > Issues > Workflows > Create New Workflow / Edit one of the Workflows you see in there.
    NOTE: You may have to create a copy of your workflow first, make edits to that, and then set that as your Active Workflow.
  2. Custom Events can be created by going to Jira Settings > System > Advanced > Events.
  3. Custom Notifications can be attached to these custom events by going to Jira Settings > Issues > Notification Schemes > Choose your project's notification scheme. Edit notifications for the events listed there.

Suggest an answer

Log in or Sign up to answer