Forums

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

Webhook for specific project(s) - some not working

Mike Crowley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2018

I'm trying to set up a Webhook integration with Slack.  We have different Slack channels (and therefore different Webhooks) for each Project.  Ideally, I would send a webhook when one of three things happens -

1. When an Issue is Created

2. When a Comment is made on an Issue

3. When an Issue's status changes

 

I was able to set up two Webhooks just fine that do #1, and they fire properly based on which project.  I did this using the JQL filters -

Webhook 1 - project = "AAA" or project = "BBB"

 - Issue: Created, updated

 - Comment: Created

Webhook 2 - project = "CCC" or project = "DDD"

 - Issue: Created, updated

 - Comment: Created

 

However, I was unable to get the webhooks to fire when I make a comment to any issue in any of the four projects, or when an Issue's status changed.

If I remove the JQL filter, any change to any issue's status (against any project) fires the webhook.  No comment fires the webhook though.

I like the idea of using Workflow Transitions, but projects AAA, BBB, CCC and DDD all share the same workflow scheme and I don't want them to post to the same channel... and that still doesn't solve the commenting problem.

1 answer

0 votes
Move Work Forward
Atlassian Partner
August 9, 2021

You cannot use OR in those webhooks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events