Post each project update to 1 slack channel (multi channel)

I installed JIRA server (self-hosted) and created 3 projects A,B,C.

I have slack team with 3 channel: slack_A, slack_B, slack_C.

 

How to post events of project A,B,C seperately to channel slack_A, slack_B, slack_C. Eg:

  • create issue in project A --> notify to channel slack_A (not post to slack_B, slack_C)
  • update issue in project B --> notify to channel slack_B (not post to slack_A, slack_B)

 

Thank!

2 answers

1 accepted

1 votes
Tarun Sapra Community Champion Jan 08, 2018

As per the docs it should be doable. In the JQL query you can mention project key i.e. "project = <key-here>"

 

  1. Visit the JIRA Server alerts page in the Slack App Directory.
  2. Click Install below the JIRA icon on the left.
  3. Choose a channel where you'd like JIRA notifications to be posted.
  4. Click Add JIRA integration.
  5. Copy the webhook URL on the page.
  6. In your JIRA account, click System in the Administration menu.
  7. Click Webhooks in the sidebar under Advanced.
  8. Click Create a Webhook to see the webhook creation form, enter a name (e.g., Slack), and paste in the webhook URL from step #5.
Tarun Sapra Community Champion Jan 08, 2018

Limit updates to certain JIRA projects

Using the JIRA Query Language (JQL), you can limit your webhook to only post notifications from certain projects. For a single project, use project = “Project A”, and for multiple projects, use project in (“Project A”,“Project B”).

Thank you. I done it as below.

1. Use  JIRA Server alerts page to create 3 webhook url_A, url_B, url_C

2. In JIRA, create 3 webhook using respectively url_A, url_B, url_C --> each web hook is filtered by JQL language (project = "project_name").

Tarun Sapra Community Champion Jan 09, 2018

So did it work? If it did, could you please accept/upvote the answer. Thanks.

Yes, I accepted this answer. Thank you!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,933 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot