I'm getting data for ticket A with the Ticket::TicketSearch operation, and I want to make a new ticket B and make its body text the same as ticket A's body text. I'm trying to call Ticket::TicketCreate (documentation I'm following) for this. However, I'm getting back the error which seems to suggest I'm either not including something the operation needs or my parameters into Python's request.get() function are malformed. From what I can tell the fields below are what OTRS 6 requires for this call. Am I missing something else?
Code:
TicketCreate.MissingParameter
Code:
params = {'UserLogin': OTRSLogin,'Password': OTRSPassword,'Ticket': {'Title': desiredTitle,'QueueID': 27,'StateID': 3,'PriorityID': 3},'Article': {'CommunicationChannel': 'Email','CommunicationChannelID': 1,'IsVisibleForCustomer': 1,'ArticleSend': 1,'From': fromEmail,'Subject': desiredTitle,'Body': bodyTicketA,'ContentType': 'text/plain; charset=utf-8'}}
Statistics: Posted by ATD39401 — 05 Aug 2024, 22:50 — Replies 0 — Views 46