1
0
Fork 0
forked from fnux/rt2zammad

[fs2zammad] handle tickets with empty subject

This commit is contained in:
fnux 2024-05-08 17:49:36 +02:00
parent b1fbe9d4ab
commit 29431f72df
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12

View file

@ -133,7 +133,7 @@ def create_zammad_ticket(id, zammad, h2t, retries=3):
creator = zammad_creator
zammad_ticket_template = {
"title": rt_ticket["ticket"]["Subject"],
"title": rt_ticket["ticket"]["Subject"] or 'RT: Empty Subject',
"group": "Users",
"customer": creator,
"note": "RT-import:{}".format(rt_ticket["ticket"]["original_id"]),