Forums

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

Slack notification on Automated transition

despieros May 24, 2019

In our team we have a few automation with a transitions like: 
- When developer create pull request - trigger make automated transition from "in progress" to "waiting for review" 
- Webhook which listen when task gone from "in progress" and notify developer in slack. 
- Notifications are set up with "JIRA Server Alerts (Legacy)" app for slack + Webhook settings in JIRA

Problem: 
- If someone manually move task from "in progress" to "waiting for review" notification works great. 
- If task has been moved by trigger after pull request opens - notification isn't work.

How can it be fixed?

(we are using jira server 8.1)

2 answers

0 votes
despieros May 24, 2019

I just tried to simplify JQL condition and: 

This one work only when move task from in progress

Screenshot 2019-05-24 at 2.02.37 PM.png

Also i tried this one moment ago and get notification only when task has been moved only from  "Waiting for Review"
Screenshot 2019-05-24 at 2.27.21 PM.png

Olga Videc
Community Champion
May 24, 2019

Hello, 

Try this JQL

status changed from "In Progress" to "Waiting for review"

BR, Olga

despieros May 24, 2019

Hello, 
Thx, It works with transition "In Progress" to "Waiting for review", but only if i change status manual in JIRA, and still not working when status changed by creating pull request in Bitbucket.
Screenshot 2019-05-24 at 2.59.18 PM.png

Olga Videc
Community Champion
May 24, 2019

I see you are testing with issue's

Please tell me this does your issue appear on the list when you are using this filter issue search, you need to update or create this issue within last 10 minutes if the search shows it than slack should read it. 

updated >= -10m

Also on your screenshots, I don't see this part where you can select the event

slack 1.png

despieros May 24, 2019

Screenshot with updated flag:

Screenshot 2019-05-24 at 3.17.20 PM.png

Search: 
i did update in test task and try to search after.

Screenshot 2019-05-24 at 3.22.39 PM.png

Olga Videc
Community Champion
May 24, 2019

And it still doesn't work?

Everything is set up as it should be.

Similar issue appearing here

https://jira.atlassian.com/browse/JRACLOUD-67658

Any way.

Try duplicating and editing the existing workflow on the transition from in progress to Waiting for review"  add a custom post function Trigger a Webhook and select the webhook you desire.

0 votes
Olga Videc
Community Champion
May 24, 2019

Hello @despieros 

Can you send me your webhook screenshot?

Your webhook listener should be set up:

Event 

Issue updated and you should add jql condition

     JQL condition status = "Waiting for review" 

despieros May 24, 2019

accidentally replied as a new answer

Suggest an answer

Log in or Sign up to answer