我们使用OTRS v4的REST-API来创建故障单,但是代理不会收到通知,即已在订阅队列中创建了新的故障单。
除此之外,通知系统也可以正常工作-如果通过电子邮件或Web界面创建票证,则将通知发送到订阅了票证已创建队列的代理。
这是我用来在python脚本中通过TicketCreate创建票证的有效载荷:
payload = {
"UserLogin": 'username',
"Password": 'password',
"Ticket" : {
"Title" : "Ticket-Title",
"Queue" : "Some-Queue",
"Type" : "default",
'State' : 'new',
"PriorityID" : "2",
"CustomerUser" : "customer1",
"OwnerID": "1", # root@localhost
"LockID": "1", # 1= free,
},
"Article" : {
"ArticleTypeID": '8', # 8= web-request
"Subject" : "Article-Subject",
"Body" : "Article-Body",
"ContentType" : "text/plain; charset=utf8",
"MimeType" : "text/plain",
"Charset" : "utf8",
'NoAgentNotify': '0',
}
}
订阅了队列的座席如何也可以接收有关使用REST-API创建的新票证的通知?
OTRS API参考Perl: https://doc.otrs.com/doc/api/otrs/5.0/Perl/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm.html