phprt

How to create a ticket with attachment in RT using REST


Does anyone know how to create a ticket with attachment in RT (Request Tracker) using REST service with PHP script?


Solution

  • remove "attachment_1: /tmp/img2.PNG" add a POST a variable using addPostFile() with name "attachment_1" that contains the raw attachment.