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 vote
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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

523 views 1 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