{"action":"created","issue":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/241","repository_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator","labels_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/241/comments","events_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/241/events","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/241","id":250095777,"number":241,"title":"OriginalValue doesn't seem to be working (2017 RC1)","user":{"login":"alexvaccaro","id":3834213,"avatar_url":"https://avatars1.githubusercontent.com/u/3834213?v=4","gravatar_id":"","url":"https://api.github.com/users/alexvaccaro","html_url":"https://github.com/alexvaccaro","followers_url":"https://api.github.com/users/alexvaccaro/followers","following_url":"https://api.github.com/users/alexvaccaro/following{/other_user}","gists_url":"https://api.github.com/users/alexvaccaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvaccaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvaccaro/subscriptions","organizations_url":"https://api.github.com/users/alexvaccaro/orgs","repos_url":"https://api.github.com/users/alexvaccaro/repos","events_url":"https://api.github.com/users/alexvaccaro/events{/privacy}","received_events_url":"https://api.github.com/users/alexvaccaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-14T17:16:42Z","updated_at":"2017-08-14T17:37:43Z","closed_at":null,"body":"I have setup a number of rules to trigger updates only when the value (e.g. an IterationPath) changes, and I believed that comparing **OriginalValue** vs **Value** would give me the means to check if a value was being changed:\r\n\r\n``` c#\r\nvar oldIteration = self.Fields[\"System.IterationPath\"].OriginalValue;\r\nvar newIteration = self.Fields[\"System.IterationPath\"].Value;\r\nlogger.Log(LogLevel.Verbose, \"Iteration Path for #{0} was '{1}' and is now '{2}'\", self.Id, oldIteration, newIteration);\r\n```\r\n\r\nHowever when I run this in DebugView the values of 'oldIteration' and 'newIteration' are the same. Was my assumption incorrect or is there an issue here?"},"comment":{"url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/comments/322256508","html_url":"https://github.com/tfsaggregator/tfsaggregator/issues/241#issuecomment-322256508","issue_url":"https://api.github.com/repos/tfsaggregator/tfsaggregator/issues/241","id":322256508,"user":{"login":"giuliov","id":1869724,"avatar_url":"https://avatars3.githubusercontent.com/u/1869724?v=4","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":"2017-08-14T17:37:43Z","updated_at":"2017-08-14T17:37:43Z","body":"Referring to https://tfsaggregator.github.io/intro/how-it-works/#server-plugin the Plugin is notified _after_ the change has been persisted to the database, so `OriginalValue` refers to the value when Aggregator first read it from TFS.\r\n\r\nIf you want to compare to the value before user's save, you have to use [`PreviousRevision`](https://tfsaggregator.github.io/using/objects-reference/self-object/#history-and-related-properties) that forces an additional query to the database to get the previous snapshot of the workitem."}}
{"actor":{"display_login":"giuliov"}}