
I defined a webservice to access tickets via the API. While this seems to work, I'm having problems accessing the attachments in a ticket: % curl -X POST --data '{"Data": [{"Attachments": "1"}]}' \ https://otrs.charite.de/otrs/nph-genericinterface.pl/Webservice/TicketContent/TicketGet/273955?UserLogin=user\&Password=secret\&Attachments=1 {"Ticket":[{"EscalationResponseTime":0,"Queue":"Proxy","Priority":"3 normal", "RealTillTimeNotUsed":0,"TicketID":273955,"OwnerID":3,"StateID":4,"StateType":"open", "ArchiveFlag":"n","LockID":1,"Lock":"unlock","PriorityID":3,"QueueID":13,"EscalationTime":0, "CustomerUserID":"mfleisch","Owner":"hildeb","Type":"default", "TicketNumber":"2019021810000883","Changed":"2019-02-21 14:28:59","ChangeBy":1,"SLAID":"", "EscalationUpdateTime":0,"EscalationSolutionTime":0,"UnlockTimeout":1550755739,"Age":610639, "Responsible":"root","Title":"python/pyinstaller","CreateBy":1,"UntilTime":0,"ServiceID":"", "CreateTimeUnix":1550498200,"GroupID":1,"Created":"2019-02-18 14:56:40","State":"open", "ResponsibleID":1,"TypeID":1,"CustomerID":"marxxxxxeischer@charite.de"}]} -- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebrandt@charite.de Campus Benjamin Franklin https://www.charite.de Hindenburgdamm 30, 12203 Berlin Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155

* Ralf Hildebrandt
I defined a webservice to access tickets via the API. While this seems to work, I'm having problems accessing the attachments in a ticket:
% curl -X POST --data '{"Data": [{"Attachments": "1"}]}' \ https://otrs.charite.de/otrs/nph-genericinterface.pl/Webservice/TicketContent/TicketGet/273955?UserLogin=user\&Password=secret\&Attachments=1
In the end: % curl https://otrs.charite.de/otrs/nph-genericinterface.pl/Webservice/TicketContent/TicketGet/274500?UserLogin=user\&Password=secret\&AllArticles=1\&Attachments=1 Obviously I'm too dumb to properly set the required parameters using POST. -- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebrandt@charite.de Campus Benjamin Franklin https://www.charite.de Hindenburgdamm 30, 12203 Berlin Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
participants (1)
-
Ralf Hildebrandt