Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Slack /Jira integration - Priority Change

Michael Pfeiffer
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 13, 2018

I am using Jira server - 7.3.6 and Slack App - Jira Server Alerts. 

 

I have configured the Jira webhook to include:

JQL: project = IT AND priority = P0 

Issue

  • created
  • updated
  • deleted
  • worklog changed

and on Slack Jira server App config:

notifications On: 

* ---> *

I am able to create a new Jira issue or close an existing issue with a P0 and have it report(comment) to the slack channel without issue. 


The problem is when I have an existing issue and change the priority from something other than a P0 to a P0 it will not report this issue to the desired channel. 

I have tried the JQL:

"project = IT AND priority changed to > P1" which did not work for anything other than creating new P0 issues. 

 

Suggestions?

1 answer

0 votes
Keri
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2018

Hi Michael, 

If you run the JQL in Jira, "project = IT AND priority changed to > P1" it won't complete, this is a good way to test JQL for webhooks. 

 

Try something similar to "project = "IT" and priority changed to (P1, P2)" or whichever priorities you want to add to the list. 

 

Let us know if this works!


Cheers,

Keri 

Michael Pfeiffer
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 19, 2018

Thanks for your response. Based off of your suggestion i have changed the webhook JQL to: "project = "IT" AND priority changed TO (P0)" . But even with this, I when I change tickets from anything to P0 the Slack Channel is still NOT notified. 

Dharma Ramos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2019

@Michael Pfeiffer Did you ever get this to work? I had a similar request.

tarakeswar_dubey July 19, 2019

Same for us. I sense that this is a bug in WebHook integration.

Shanta Nathwani
Contributor
July 22, 2019

I've been testing my own integration. It seems to work exactly as I expect. Correct projects, correct priorities. I used Blocker, Critical and Major. Works as expected.

But I actually want just critical and blocker for the real channel. When I turn it on in the real, major issues are included when I look at the event log in the Slack integration for this test. 

I also ensured that the link to the webhook is correct. Is it possible that because I have two separate ones, that there is some overlap?

Lukáš Meitner
Contributor
January 23, 2022 edited

Hi guys, for everyone seeking an answer, according to https://developer.atlassian.com/cloud/jira/platform/webhooks/, priority is not supported variable in limited JQL for webhooks.

Suggest an answer

Log in or Sign up to answer