{"action":"created","issue":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/182","repository_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator","labels_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/182/comments","events_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/182/events","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/182","id":179971192,"number":182,"title":"TF26027: A field definition Microsoft.Custom.Definition in the work item type definition file does not exist. Add a definition for this field or remove the reference to thefield and try again.","user":{"login":"ShreeSam","id":20398445,"avatar_url":"https://avatars.githubusercontent.com/u/20398445?v=3","gravatar_id":"","url":"https://api.github.com/users/ShreeSam","html_url":"https://github.com/ShreeSam","followers_url":"https://api.github.com/users/ShreeSam/followers","following_url":"https://api.github.com/users/ShreeSam/following{/other_user}","gists_url":"https://api.github.com/users/ShreeSam/gists{/gist_id}","starred_url":"https://api.github.com/users/ShreeSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShreeSam/subscriptions","organizations_url":"https://api.github.com/users/ShreeSam/orgs","repos_url":"https://api.github.com/users/ShreeSam/repos","events_url":"https://api.github.com/users/ShreeSam/events{/privacy}","received_events_url":"https://api.github.com/users/ShreeSam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-09-29T07:21:30Z","updated_at":"2016-10-20T08:32:59Z","closed_at":"2016-10-20T08:32:59Z","body":"Hi Team,\r\n\r\nWe are facing strange issue in our TFS aggregation .\r\nWe had custom field Microsoft.Custom.Definition and we had defined rules for the Microsoft.Custom.Definition everything was working as expected til yesterday.\r\ntoday am facing above issue when i run TFSAggregator2.ConsoleApp.exe with policy file.\r\n\r\n[Critical] 04.929 Exception encountered processing notification: TF26027: A field definition Microsoft.Custom.Definition in the work item type definition file does not exist. Add a definition for this field or remove the reference to thefield and try again.\r\nPlease help me with this.\r\n\r\nThanks,\r\nShree"},"comment":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/comments/255043041","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/182#issuecomment-255043041","issue_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/182","id":255043041,"user":{"login":"ShreeSam","id":20398445,"avatar_url":"https://avatars.githubusercontent.com/u/20398445?v=3","gravatar_id":"","url":"https://api.github.com/users/ShreeSam","html_url":"https://github.com/ShreeSam","followers_url":"https://api.github.com/users/ShreeSam/followers","following_url":"https://api.github.com/users/ShreeSam/following{/other_user}","gists_url":"https://api.github.com/users/ShreeSam/gists{/gist_id}","starred_url":"https://api.github.com/users/ShreeSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShreeSam/subscriptions","organizations_url":"https://api.github.com/users/ShreeSam/orgs","repos_url":"https://api.github.com/users/ShreeSam/repos","events_url":"https://api.github.com/users/ShreeSam/events{/privacy}","received_events_url":"https://api.github.com/users/ShreeSam/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T08:32:59Z","updated_at":"2016-10-20T08:32:59Z","body":"Hi Jessehouwing,\r\n\r\nYes Bug doesn't have this field because of which rule is failing. I have added field to bug as well. Have change the rule.\r\n<rule name=\"FRUP_US\" appliesTo=\"User Story\" hasFields=\"Microsoft.Custom.Story\">\r\n<![CDATA[\r\n\tif (self.HasParent())\r\n\t{\r\n\tforeach ( var child in self.Parent.Children)\r\n\t{\r\n\tif (child.TypeName == \"User Story\")\r\n\t{\r\n\t\tif (child[\"Microsoft.Custom.Definition\"].ToString() == \"Not Started\")\r\n\t\t\t{\r\n\t\t\t\tself.Parent[\"Microsoft.Custom.Definition\"] = \"Not Started\".ToString();\r\n\t\t\t}\r\n\t\t\telse if (child[\"Microsoft.Custom.Definition\"].ToString() == \"Not Applicable\")\r\n\t\t\t{\r\n\t\t\t\tself.Parent[\"Microsoft.Custom.Definition\"] = \"Not Applicable\".ToString();\r\n\t\t\t}\r\n\t\t\telse if (child[\"Microsoft.Custom.Definition\"].ToString() == \"In Progress\")\r\n\t\t\t{\r\n\t\t\t\tself.Parent[\"Microsoft.Custom.Definition\"] = \"In Progress\".ToString();\r\n\t\t\t}\r\n\t\t\telse if (child[\"Microsoft.Custom.Definition\"].ToString() == \"Complete\")\r\n\t\t\t{\r\n\t\t\t\tself.Parent[\"Microsoft.Custom.Definition\"] = \"Complete\".ToString();\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tself.Parent[\"Microsoft.Custom.Definition\"] = \"In Progress\".ToString();\r\n\t\t\t}\r\n     }\r\n}\r\n}\r\n]]>\r\n\r\nNow the rule is running for only recently changed Child User Story.\r\nCan you please suggest how can i filter for all User Story under Feature and then apply the rule.\r\n\r\nThanks,\r\nShree"}}
{"actor":{"display_login":"ShreeSam"}}