Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $VAR1 = 'ticket/47';
- $VAR2 = {
- 'Cc' => [],
- 'Creator' => {
- 'id' => 'carl',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl',
- 'type' => 'user'
- },
- 'LastUpdated' => '2018-02-19T17:58:50Z',
- 'AdminCc' => [],
- 'Queue' => {
- 'id' => '3',
- '_url' => 'http://localhost/rt/REST/2.0/queue/3',
- 'type' => 'queue'
- },
- 'Started' => '1970-01-01T00:00:00Z',
- 'CustomFields' => {
- '7' => [],
- '10' => [
- 'test'
- ],
- '8' => [],
- '2' => [],
- '9' => [],
- '6' => []
- },
- 'Subject' => 'Test',
- 'Type' => 'ticket',
- 'EffectiveId' => {
- 'id' => '47',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47',
- 'type' => 'ticket'
- },
- 'Priority' => '0',
- 'TimeWorked' => '0',
- 'TimeEstimated' => '0',
- 'Requestor' => [
- {
- 'type' => 'user',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl',
- 'id' => 'carl'
- }
- ],
- 'Starts' => '1970-01-01T00:00:00Z',
- '_hyperlinks' => [
- {
- 'type' => 'ticket',
- 'ref' => 'self',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47',
- 'id' => '47'
- },
- {
- '_url' => 'http://localhost/rt/REST/2.0/customfield/2',
- 'ref' => 'customfield',
- 'id' => '2',
- 'type' => 'customfield'
- },
- {
- 'type' => 'customfield',
- 'ref' => 'customfield',
- '_url' => 'http://localhost/rt/REST/2.0/customfield/6',
- 'id' => '6'
- },
- {
- 'type' => 'customfield',
- 'ref' => 'customfield',
- '_url' => 'http://localhost/rt/REST/2.0/customfield/7',
- 'id' => '7'
- },
- {
- 'id' => '10',
- 'ref' => 'customfield',
- '_url' => 'http://localhost/rt/REST/2.0/customfield/10',
- 'type' => 'customfield'
- },
- {
- 'id' => '8',
- '_url' => 'http://localhost/rt/REST/2.0/customfield/8',
- 'ref' => 'customfield',
- 'type' => 'customfield'
- },
- {
- 'id' => '9',
- '_url' => 'http://localhost/rt/REST/2.0/customfield/9',
- 'ref' => 'customfield',
- 'type' => 'customfield'
- },
- {
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/history',
- 'ref' => 'history'
- },
- {
- 'ref' => 'correspond',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/correspond'
- },
- {
- 'ref' => 'comment',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/comment'
- },
- {
- 'update' => 'Respond',
- 'from' => 'new',
- 'to' => 'open',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/correspond',
- 'ref' => 'lifecycle',
- 'label' => 'Open It'
- },
- {
- 'update' => 'Comment',
- 'from' => 'new',
- 'to' => 'resolved',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/comment',
- 'label' => 'Resolve',
- 'ref' => 'lifecycle'
- },
- {
- 'from' => 'new',
- 'update' => 'Respond',
- 'to' => 'rejected',
- 'label' => 'Reject',
- 'ref' => 'lifecycle',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47/correspond'
- },
- {
- 'ref' => 'lifecycle',
- 'label' => 'Delete',
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47',
- 'from' => 'new',
- 'to' => 'deleted'
- }
- ],
- 'TimeLeft' => '0',
- 'Created' => '2018-02-19T17:31:41Z',
- 'InitialPriority' => '0',
- 'Due' => '1970-01-01T00:00:00Z',
- 'FinalPriority' => '0',
- 'LastUpdatedBy' => {
- 'type' => 'user',
- 'id' => 'carl',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl'
- },
- 'Resolved' => '1970-01-01T00:00:00Z',
- 'Owner' => {
- 'id' => 'Nobody',
- '_url' => 'http://localhost/rt/REST/2.0/user/Nobody',
- 'type' => 'user'
- },
- 'id' => '47',
- 'Status' => 'new'
- };
- #################################################################################################################
- $VAR1 = 'ticket/47/history';
- $VAR2 = {
- 'count' => 2,
- 'total' => 3,
- 'page' => 1,
- 'per_page' => 20,
- 'items' => [
- {
- 'type' => 'transaction',
- '_url' => 'http://localhost/rt/REST/2.0/transaction/572',
- 'id' => '572'
- },
- {
- '_url' => 'http://localhost/rt/REST/2.0/transaction/574',
- 'id' => '574',
- 'type' => 'transaction'
- }
- ]
- };
- #################################################################################################################
- $VAR1 = 'transaction/572';
- $VAR2 = {
- 'Created' => '2018-02-19T17:31:41Z',
- 'TimeTaken' => '0',
- 'Creator' => {
- 'id' => 'carl',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl',
- 'type' => 'user'
- },
- 'Type' => 'Create',
- 'Object' => {
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47',
- 'id' => '47',
- 'type' => 'ticket'
- },
- 'id' => '572',
- '_hyperlinks' => [
- {
- 'type' => 'transaction',
- 'id' => '572',
- '_url' => 'http://localhost/rt/REST/2.0/transaction/572',
- 'ref' => 'self'
- },
- {
- '_url' => 'http://localhost/rt/REST/2.0/attachment/331',
- 'ref' => 'attachment'
- }
- ]
- };
- #################################################################################################################
- $VAR1 = 'attachment/331';
- $VAR2 = {
- 'ContentType' => 'text/html',
- 'Parent' => '0',
- 'Subject' => 'Test',
- 'id' => '331',
- 'MessageId' => 'rt-4.4.2-775-1519061501-42.0-0-0@leathersfuels.net',
- 'Created' => '2018-02-19T17:31:41Z',
- 'Headers' => 'Content-Type: text/html; charset="utf-8"
- X-RT-Interface: Web
- Date: Mon, 19 Feb 2018 09:31:41 -0800
- X-Mailer: MIME-tools 5.508 (Entity 5.508)
- Subject: Test
- Message-ID: <rt-4.4.2-775-1519061501-42.0-0-0@leathersfuels.net>
- MIME-Version: 1.0
- From: carl@leathersfuels.net
- Content-Disposition: inline
- Content-Transfer-Encoding: binary
- X-RT-Original-Encoding: utf-8
- Content-Length: 31',
- 'Content' => 'This is a test initial content.',
- '_hyperlinks' => [
- {
- 'id' => '331',
- '_url' => 'http://localhost/rt/REST/2.0/attachment/331',
- 'ref' => 'self',
- 'type' => 'attachment'
- }
- ],
- 'TransactionId' => {
- 'type' => 'transaction',
- '_url' => 'http://localhost/rt/REST/2.0/transaction/572',
- 'id' => '572'
- },
- 'Creator' => {
- 'type' => 'user',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl',
- 'id' => 'carl'
- }
- };
- #################################################################################################################
- $VAR1 = 'transaction/574';
- $VAR2 = {
- 'id' => '574',
- 'Type' => 'Comment',
- 'Created' => '2018-02-19T17:58:50Z',
- 'TimeTaken' => '0',
- 'Data' => 'No Subject',
- 'Object' => {
- '_url' => 'http://localhost/rt/REST/2.0/ticket/47',
- 'id' => '47',
- 'type' => 'ticket'
- },
- '_hyperlinks' => [
- {
- 'type' => 'transaction',
- 'id' => '574',
- 'ref' => 'self',
- '_url' => 'http://localhost/rt/REST/2.0/transaction/574'
- },
- {
- '_url' => 'http://localhost/rt/REST/2.0/attachment/335',
- 'ref' => 'attachment'
- }
- ],
- 'Creator' => {
- 'type' => 'user',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl',
- 'id' => 'carl'
- }
- };
- #################################################################################################################
- $VAR1 = 'attachment/335';
- $VAR2 = {
- 'TransactionId' => {
- 'type' => 'transaction',
- 'id' => '574',
- '_url' => 'http://localhost/rt/REST/2.0/transaction/574'
- },
- 'Creator' => {
- 'type' => 'user',
- 'id' => 'carl',
- '_url' => 'http://localhost/rt/REST/2.0/user/carl'
- },
- '_hyperlinks' => [
- {
- 'id' => '335',
- 'ref' => 'self',
- '_url' => 'http://localhost/rt/REST/2.0/attachment/335',
- 'type' => 'attachment'
- }
- ],
- 'Content' => 'This is a comment added after the ticket was created.',
- 'Headers' => 'In-Reply-To: <rt-4.4.2-775-1519061501-42.0-0-0@leathersfuels.net>
- Content-Type: text/html; charset="utf-8"
- X-RT-Interface: Web
- X-Mailer: MIME-tools 5.508 (Entity 5.508)
- Message-ID: <rt-4.4.2-804-1519063130-182.47-0-0@leathersfuels.net>
- MIME-Version: 1.0
- References: <rt-4.4.2-775-1519061501-42.0-0-0@leathersfuels.net>
- <RT-Ticket-47@leathersfuels.net>
- X-RT-Original-Encoding: utf-8
- Content-Disposition: inline
- Content-Transfer-Encoding: binary
- Content-Length: 53',
- 'Created' => '2018-02-19T17:58:50Z',
- 'Subject' => '',
- 'Parent' => '0',
- 'MessageId' => 'rt-4.4.2-804-1519063130-182.47-0-0@leathersfuels.net',
- 'id' => '335',
- 'ContentType' => 'text/html'
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement