We have several queue filters based on the issue's request type, for instance application management or general. In some cases the request type is not appropriate and must be changed the agent, so the ticket goes to the other queue and get picked up by the responsible agent.
Is there a way to notify agents when the request type changes? In the best case notify a group of people. Can this achieved by custom automation rule or plugin?
Hey David,
I had this same issue. I found a notifications tab within Service Desk
Hope this is helpful!
Hi Thomas, with this setting the specific group would get notifications for all updates. In my case only one specific group should get the notification when the field "customer request type" changes to the specific value, e.g. request type change to "application management" should trigger notification for group "application managers" only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see what you are saying now... That's a great question. I tried some sort of Automation Rule but I've never had success doing so. Hopeful someone will give us an answer shortly. Sorry I couldn't help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm looking for an answer to the same question. We have an automation rule to add a group to the issue based on the request type, and that group is also copied on the Issue Created notification. What we need is a way to notify the appropriate group when the request type is changed, but not when there are other updates to the issue.
David, did you ever find a solution for this? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Susan, we have created a Script Runner Listern, which listens on "issue updated" events and checks if request type has changed. If yes, then the underlying group stored in a custom field is notified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@david kreuter Can you please share the script for that? I got the listener part and update event part -- but what is the particular code you used to monitor the change of "Customer Request Type" -- can you please paste the code, and possibly add some screenshots?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrew Bilukha, for detecting a change for a particular field you can do:
List<GenericValue> changeItems = event?.getChangeLog()?.getRelated("ChildChangeItem")
GenericValue changeItem = changeItems.find {
it.field == 'Customer Request Type'
}if (changeItem) {
// perform your action on field change
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great, thanks @david kreuter . Mine, to trigger an event on switch "TO" Customer Request Type (we want to email a specific group when the tickets gets to their queue) looks like this:
def change = event?.getChangeLog()?.getRelated("ChildChangeItem").find {it.field == "Customer Request Type"}
if (change) {
if (
change.newstring == 'Desktop Support request' ||
change.newstring == 'Desktop Support incident'
) {
log.info("Returning true\nOld Value: " + change.oldstring + "\nNew Value: " + change.newstring)
return true
}
log.info("Inner returning false\nOld Value: " + change.oldstring + "\nNew Value: " + change.newstring)
return false
}
log.info("Outer returning false\n")
return false
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.