{"action":"created","issue":{"url":"https://api.github.com/repos/opendns/autotask-php/issues/94","repository_url":"https://api.github.com/repos/opendns/autotask-php","labels_url":"https://api.github.com/repos/opendns/autotask-php/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/opendns/autotask-php/issues/94/comments","events_url":"https://api.github.com/repos/opendns/autotask-php/issues/94/events","html_url":"https://github.com/opendns/autotask-php/issues/94","id":294188747,"number":94,"title":"CreatorResourceID Integer Issue","user":{"login":"thekingster","id":36127648,"avatar_url":"https://avatars3.githubusercontent.com/u/36127648?v=4","gravatar_id":"","url":"https://api.github.com/users/thekingster","html_url":"https://github.com/thekingster","followers_url":"https://api.github.com/users/thekingster/followers","following_url":"https://api.github.com/users/thekingster/following{/other_user}","gists_url":"https://api.github.com/users/thekingster/gists{/gist_id}","starred_url":"https://api.github.com/users/thekingster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekingster/subscriptions","organizations_url":"https://api.github.com/users/thekingster/orgs","repos_url":"https://api.github.com/users/thekingster/repos","events_url":"https://api.github.com/users/thekingster/events{/privacy}","received_events_url":"https://api.github.com/users/thekingster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-04T11:03:21Z","updated_at":"2018-02-05T21:12:14Z","closed_at":null,"author_association":"NONE","body":"Hi Guys \r\n\r\nI am trying to return all tickets logged by a resource using CreatorResourceID. I can get this to work if I say equals 4, which I believe is logged by email, but if I use an actual resource ID it fails, even though if I remove said section of the query it is in the results.\r\n\r\nFor example:\r\n\r\n$package7 = new ATWS\\AutotaskObjects\\QueryField('CreatorResourceID');\r\n$package7->addExpression('equals', 29682915);\r\n\r\nNothing is returned. However if I rem out the above I get a list of all the tickets that day, one of them being:\r\n\r\n2018-02-02T03:57:16.273 | Documentation for ongoing projects | 29682915\r\n\r\nI can see this is an integer in the documentation and this number would be a long integer. Is this the issue?\r\n\r\nThanks\r\n\r\nDave\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opendns/autotask-php/issues/comments/363222822","html_url":"https://github.com/opendns/autotask-php/issues/94#issuecomment-363222822","issue_url":"https://api.github.com/repos/opendns/autotask-php/issues/94","id":363222822,"user":{"login":"SirPoot-","id":9685068,"avatar_url":"https://avatars1.githubusercontent.com/u/9685068?v=4","gravatar_id":"","url":"https://api.github.com/users/SirPoot-","html_url":"https://github.com/SirPoot-","followers_url":"https://api.github.com/users/SirPoot-/followers","following_url":"https://api.github.com/users/SirPoot-/following{/other_user}","gists_url":"https://api.github.com/users/SirPoot-/gists{/gist_id}","starred_url":"https://api.github.com/users/SirPoot-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirPoot-/subscriptions","organizations_url":"https://api.github.com/users/SirPoot-/orgs","repos_url":"https://api.github.com/users/SirPoot-/repos","events_url":"https://api.github.com/users/SirPoot-/events{/privacy}","received_events_url":"https://api.github.com/users/SirPoot-/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T21:12:14Z","updated_at":"2018-02-05T21:12:14Z","author_association":"NONE","body":"@thekingster That's odd. I cannot see your entire query. You're queryfield looks correct.  I was able to return tickets created by the user with the code below. Which makes me think you may have another filter filtering out that data or there was not a ticket created by the resource you are querying.\r\n\r\n```\r\n$tickets = new \\ATWS\\AutotaskObjects\\Query('Ticket');\r\n$ticketqueryfield = new \\ATWS\\AutotaskObjects\\QueryField('CreatorResourceID');\r\n$ticketqueryfield->addExpression('equals',30845726);\r\n$tickets->addField($ticketqueryfield);\r\n$result = $this->client->query($tickets);\r\nreturn($result);\r\n```"}}
{"actor":{"display_login":"SirPoot-"}}