Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Slack and servicenow integration

Pavan Kumar BV
Kilo Expert

Hi Team,

I have successfully implemented POC to integrate slack and servicenow in such a way that

1. As soon as an P1/P2 ticket is assigned to my group i will get an instant alert.

2.Also, if any P3/P4/P5 ticket assigned to my group is updated to P1/P2 i get a notification on my slack.

Hence, i have used an after insert/update BR for it with below conditions.

find_real_file.png

However, i am getting alerts for every change that i make on my incident satisfying the above conditions.

For example: assume a P1 is assigned to my group and i get notified in slack that a P1 is assigned. And now if i add a work note/additional comment/make any change in any of the incidents fields i am getting the alerts again. I dont want this to happen. I need the notification only when the ticket is assigned to my queue. But not for every change i make.

Is there a way to tell my BR not to execute when any change to other fields is made?

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Pavan Kumar BV
Kilo Expert

I have achieved this using an updated query as below.

Priority isoneof P1/P2 AND Assignment group changes to (Grp 1, Grp 2...)

OR

Priority changes to P1/P2 AND Assignment group IS(Grp 1, Grp 2...)

View solution in original post

5 REPLIES 5

Pavan Kumar BV
Kilo Expert

I have achieved this using an updated query as below.

Priority isoneof P1/P2 AND Assignment group changes to (Grp 1, Grp 2...)

OR

Priority changes to P1/P2 AND Assignment group IS(Grp 1, Grp 2...)