{"action":"created","issue":{"url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/13","repository_url":"https://api.github.com/repos/tenable/Posh-Nessus","labels_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/13/comments","events_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/13/events","html_url":"https://github.com/tenable/Posh-Nessus/issues/13","id":193880788,"number":13,"title":"Export-NessusScan only pulls the latest history item/report","user":{"login":"masters274","id":9993931,"avatar_url":"https://avatars.githubusercontent.com/u/9993931?v=3","gravatar_id":"","url":"https://api.github.com/users/masters274","html_url":"https://github.com/masters274","followers_url":"https://api.github.com/users/masters274/followers","following_url":"https://api.github.com/users/masters274/following{/other_user}","gists_url":"https://api.github.com/users/masters274/gists{/gist_id}","starred_url":"https://api.github.com/users/masters274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masters274/subscriptions","organizations_url":"https://api.github.com/users/masters274/orgs","repos_url":"https://api.github.com/users/masters274/repos","events_url":"https://api.github.com/users/masters274/events{/privacy}","received_events_url":"https://api.github.com/users/masters274/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T20:52:51Z","updated_at":"2016-12-13T01:21:17Z","closed_at":"2016-12-13T01:21:17Z","body":"In the `foreach($Connection in $ToProcess)`, the path is hard coded as `$path =  \"/scans/$($ScanId)/export\"`. If you add the following, after this hardcoded path, it would allow you to download a specified history report instead of just the latest report.\r\n\r\n`if($HistoryID)\r\n{\r\n    $path = \"/scans/$($ScanId)/export?history_id=$($HistoryId)\"\r\n}`\r\n\r\n\r\nThanks for such great contributions!"},"comment":{"url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/comments/266606924","html_url":"https://github.com/tenable/Posh-Nessus/issues/13#issuecomment-266606924","issue_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/13","id":266606924,"user":{"login":"darkoperator","id":521246,"avatar_url":"https://avatars.githubusercontent.com/u/521246?v=3","gravatar_id":"","url":"https://api.github.com/users/darkoperator","html_url":"https://github.com/darkoperator","followers_url":"https://api.github.com/users/darkoperator/followers","following_url":"https://api.github.com/users/darkoperator/following{/other_user}","gists_url":"https://api.github.com/users/darkoperator/gists{/gist_id}","starred_url":"https://api.github.com/users/darkoperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkoperator/subscriptions","organizations_url":"https://api.github.com/users/darkoperator/orgs","repos_url":"https://api.github.com/users/darkoperator/repos","events_url":"https://api.github.com/users/darkoperator/events{/privacy}","received_events_url":"https://api.github.com/users/darkoperator/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T01:21:17Z","updated_at":"2016-12-13T01:21:17Z","body":"pull request merged, thanks :"}}
{"actor":{"display_login":"darkoperator"}}