{"action":"created","issue":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/72","labels_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/72/comments","events_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/72/events","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/72","id":111251421,"number":72,"title":"Object reference not set to an instance of an object","user":{"login":"JuliusMaximus","id":8331950,"avatar_url":"https://avatars.githubusercontent.com/u/8331950?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliusMaximus","html_url":"https://github.com/JuliusMaximus","followers_url":"https://api.github.com/users/JuliusMaximus/followers","following_url":"https://api.github.com/users/JuliusMaximus/following{/other_user}","gists_url":"https://api.github.com/users/JuliusMaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliusMaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliusMaximus/subscriptions","organizations_url":"https://api.github.com/users/JuliusMaximus/orgs","repos_url":"https://api.github.com/users/JuliusMaximus/repos","events_url":"https://api.github.com/users/JuliusMaximus/events{/privacy}","received_events_url":"https://api.github.com/users/JuliusMaximus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/milestones/2","html_url":"https://github.com/tfsaggregator/tfsaggregator/milestones/v2%20RTM","labels_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/milestones/2/labels","id":1136826,"number":2,"title":"v2 RTM","description":"","creator":{"login":"giuliov","id":1869724,"avatar_url":"https://avatars.githubusercontent.com/u/1869724?v=3","gravatar_id":"","url":"https://api.github.com/users/giuliov","html_url":"https://github.com/giuliov","followers_url":"https://api.github.com/users/giuliov/followers","following_url":"https://api.github.com/users/giuliov/following{/other_user}","gists_url":"https://api.github.com/users/giuliov/gists{/gist_id}","starred_url":"https://api.github.com/users/giuliov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuliov/subscriptions","organizations_url":"https://api.github.com/users/giuliov/orgs","repos_url":"https://api.github.com/users/giuliov/repos","events_url":"https://api.github.com/users/giuliov/events{/privacy}","received_events_url":"https://api.github.com/users/giuliov/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":3,"state":"open","created_at":"2015-05-27T20:44:19Z","updated_at":"2015-10-14T08:13:27Z","due_on":"2015-10-30T23:00:00Z","closed_at":null},"comments":3,"created_at":"2015-10-13T19:22:56Z","updated_at":"2015-10-14T09:22:41Z","closed_at":null,"body":"Using tfs 2015\r\n\r\n[Critical]    00.296 Exception encountered processing notification: Object refer\r\nence not set to an instance of an object.\r\nStack Trace:   at Aggregator.Core.Facade.WorkItemRepository.GetWorkItem(Int32 wo\r\nrkItemId) in C:\\projects\\tfsaggregator\\Aggregator.Core\\Facade\\WorkItemRepository\r\n.cs:line 45\r\n   at Aggregator.Core.EventProcessor.ProcessEvent(IRequestContext requestContext\r\n, INotification notification) in C:\\projects\\tfsaggregator\\Aggregator.Core\\Event\r\nProcessor.cs:line 58\r\n   at Aggregator.ConsoleApp.RunCommand.Run(String[] remainingArguments) in C:\\pr\r\nojects\\tfsaggregator\\Aggregator.ConsoleApp\\RunCommand.cs:line 105\r\n\r\nPolicy:\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<AggregatorConfiguration>\r\n    \r\n    <runtime>\r\n        <logging level=\"Diagnostic\"/>\r\n        <script language=\"Powershell\" />\r\n    </runtime>\r\n\r\n    <!-- When all Tasks are done being worked on, set the parent (Bug or PBI) to Done (unless it is Removed) -->\r\n    <rule name=\"AutoClose\"\r\n          appliesTo=\"Task\">\r\n    <![CDATA[\r\n    if ($self.HasParent())\r\n    {\r\n      if (-not $parent.State -eq 'Removed') {\r\n\t\t      if (-not (Get-Siblings $self | where { 'Done','Removed' -notcontains $_.State })) {\r\n\t\t            $parent.State = 'Done'\r\n\t\t      }\r\n      }\r\n    }\r\n    ]]>\r\n  </rule>\r\n\r\n    <!-- When any Tasks are In Progress set the parent (Bug or PBI) to In Progress -->\r\n    <rule name=\"AutoStart\"\r\n          appliesTo=\"Task\">\r\n      <![CDATA[\r\n      if ($self.HasParent())\r\n      {\r\n\t\t      if (-not $parent.State -eq 'Removed') {\r\n\t\t          if (Get-Siblings $self | where { 'In Progress','Ready For Test' -contains $_.State }) {\r\n\t\t              $parent.State = 'In Progress'\r\n\t\t          }\r\n\t\t      }\r\n      }\r\n      ]]>\r\n\t</rule>\r\n\r\n    <policy name=\"DefaultPolicy\">\r\n        <collectionScope\r\n            collections=\"*\"\r\n            />\r\n        <ruleRef name=\"AutoStart\" />\r\n        <ruleRef name=\"AutoClose\" />\r\n    </policy>\r\n\r\n</AggregatorConfiguration>"},"comment":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/comments/147987267","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/72#issuecomment-147987267","issue_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/72","id":147987267,"user":{"login":"giuliov","id":1869724,"avatar_url":"https://avatars.githubusercontent.com/u/1869724?v=3","gravatar_id":"","url":"https://api.github.com/users/giuliov","html_url":"https://github.com/giuliov","followers_url":"https://api.github.com/users/giuliov/followers","following_url":"https://api.github.com/users/giuliov/following{/other_user}","gists_url":"https://api.github.com/users/giuliov/gists{/gist_id}","starred_url":"https://api.github.com/users/giuliov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuliov/subscriptions","organizations_url":"https://api.github.com/users/giuliov/orgs","repos_url":"https://api.github.com/users/giuliov/repos","events_url":"https://api.github.com/users/giuliov/events{/privacy}","received_events_url":"https://api.github.com/users/giuliov/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T09:22:41Z","updated_at":"2015-10-14T09:22:41Z","body":"IIRC gci requires implementing a [PS Provider](https://technet.microsoft.com/en-us/library/ee126198(v=vs.85).aspx) which is not trivial and out-of scope. \r\n\r\nI think some helper cmdlet is within our reach, but not more... and would postpone to a future version and focusing on RTM in the next weeks."}}