{"action":"closed","issue":{"url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/issues/101","repository_url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands","labels_url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/issues/101/comments","events_url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/issues/101/events","html_url":"https://github.com/jundis/CWSlack-SlashCommands/issues/101","id":206908102,"number":101,"title":"Add Config option to only pull active contacts","user":{"login":"briangig","id":1140952,"avatar_url":"https://avatars.githubusercontent.com/u/1140952?v=3","gravatar_id":"","url":"https://api.github.com/users/briangig","html_url":"https://github.com/briangig","followers_url":"https://api.github.com/users/briangig/followers","following_url":"https://api.github.com/users/briangig/following{/other_user}","gists_url":"https://api.github.com/users/briangig/gists{/gist_id}","starred_url":"https://api.github.com/users/briangig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briangig/subscriptions","organizations_url":"https://api.github.com/users/briangig/orgs","repos_url":"https://api.github.com/users/briangig/repos","events_url":"https://api.github.com/users/briangig/events{/privacy}","received_events_url":"https://api.github.com/users/briangig/received_events","type":"User","site_admin":false},"labels":[{"id":416426367,"url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"jundis","id":766768,"avatar_url":"https://avatars.githubusercontent.com/u/766768?v=3","gravatar_id":"","url":"https://api.github.com/users/jundis","html_url":"https://github.com/jundis","followers_url":"https://api.github.com/users/jundis/followers","following_url":"https://api.github.com/users/jundis/following{/other_user}","gists_url":"https://api.github.com/users/jundis/gists{/gist_id}","starred_url":"https://api.github.com/users/jundis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jundis/subscriptions","organizations_url":"https://api.github.com/users/jundis/orgs","repos_url":"https://api.github.com/users/jundis/repos","events_url":"https://api.github.com/users/jundis/events{/privacy}","received_events_url":"https://api.github.com/users/jundis/received_events","type":"User","site_admin":false},"assignees":[{"login":"jundis","id":766768,"avatar_url":"https://avatars.githubusercontent.com/u/766768?v=3","gravatar_id":"","url":"https://api.github.com/users/jundis","html_url":"https://github.com/jundis","followers_url":"https://api.github.com/users/jundis/followers","following_url":"https://api.github.com/users/jundis/following{/other_user}","gists_url":"https://api.github.com/users/jundis/gists{/gist_id}","starred_url":"https://api.github.com/users/jundis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jundis/subscriptions","organizations_url":"https://api.github.com/users/jundis/orgs","repos_url":"https://api.github.com/users/jundis/repos","events_url":"https://api.github.com/users/jundis/events{/privacy}","received_events_url":"https://api.github.com/users/jundis/received_events","type":"User","site_admin":false},{"login":"briangig","id":1140952,"avatar_url":"https://avatars.githubusercontent.com/u/1140952?v=3","gravatar_id":"","url":"https://api.github.com/users/briangig","html_url":"https://github.com/briangig","followers_url":"https://api.github.com/users/briangig/followers","following_url":"https://api.github.com/users/briangig/following{/other_user}","gists_url":"https://api.github.com/users/briangig/gists{/gist_id}","starred_url":"https://api.github.com/users/briangig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briangig/subscriptions","organizations_url":"https://api.github.com/users/briangig/orgs","repos_url":"https://api.github.com/users/briangig/repos","events_url":"https://api.github.com/users/briangig/events{/privacy}","received_events_url":"https://api.github.com/users/briangig/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/milestones/11","html_url":"https://github.com/jundis/CWSlack-SlashCommands/milestone/11","labels_url":"https://api.github.com/repos/jundis/CWSlack-SlashCommands/milestones/11/labels","id":2296522,"number":11,"title":"2.4","description":null,"creator":{"login":"jundis","id":766768,"avatar_url":"https://avatars.githubusercontent.com/u/766768?v=3","gravatar_id":"","url":"https://api.github.com/users/jundis","html_url":"https://github.com/jundis","followers_url":"https://api.github.com/users/jundis/followers","following_url":"https://api.github.com/users/jundis/following{/other_user}","gists_url":"https://api.github.com/users/jundis/gists{/gist_id}","starred_url":"https://api.github.com/users/jundis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jundis/subscriptions","organizations_url":"https://api.github.com/users/jundis/orgs","repos_url":"https://api.github.com/users/jundis/repos","events_url":"https://api.github.com/users/jundis/events{/privacy}","received_events_url":"https://api.github.com/users/jundis/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2017-02-02T23:41:49Z","updated_at":"2017-02-10T21:48:07Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-02-10T21:13:44Z","updated_at":"2017-02-10T21:48:07Z","closed_at":"2017-02-10T21:48:07Z","body":"Some day I will figure out how to submit code changes...but today is not the day.  And for that I am sorry.\r\n\r\nIn config.php, add this to line 48:\r\n\r\n`$returninactive = \"False\";`\r\n\r\nin cwslack-contacts.php:\r\n\r\nReplace Line 58 with:\r\n\r\n`\t$url = $connectwise . \"/v4_6_release/apis/3.0/company/contacts?conditions=inactiveFlag=\" . $returninactive . \"%20and%20lastName%20like%20%27\" . $lastname . \"%27\"; //Set contact API url`\r\n\r\nReplace Line 65 with:\r\n\r\n`\t$url = $connectwise . \"/v4_6_release/apis/3.0/company/contacts?conditions=inactiveFlag=\" . $returninactive . \"%20and%20lastName%20like%20%27\" . $lastname . \"%27%20and%20firstName%20like%20%27\" . $firstname . \"%27\"; //Set contact API url to include first and last name.`\r\n\r\nYou can then set $returninactive to either True or False."}}
{"actor":{"display_login":"jundis"}}