{"action":"closed","issue":{"url":"https://api.github.com/repos/Vaccano/TFS-Aggregator/issues/19","labels_url":"https://api.github.com/repos/Vaccano/TFS-Aggregator/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Vaccano/TFS-Aggregator/issues/19/comments","events_url":"https://api.github.com/repos/Vaccano/TFS-Aggregator/issues/19/events","html_url":"https://github.com/Vaccano/TFS-Aggregator/issues/19","id":110924318,"number":19,"title":"Aggregate remaining work to parent issue - decreasing!","user":{"login":"Prybe","id":15085028,"avatar_url":"https://avatars.githubusercontent.com/u/15085028?v=3","gravatar_id":"","url":"https://api.github.com/users/Prybe","html_url":"https://github.com/Prybe","followers_url":"https://api.github.com/users/Prybe/followers","following_url":"https://api.github.com/users/Prybe/following{/other_user}","gists_url":"https://api.github.com/users/Prybe/gists{/gist_id}","starred_url":"https://api.github.com/users/Prybe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prybe/subscriptions","organizations_url":"https://api.github.com/users/Prybe/orgs","repos_url":"https://api.github.com/users/Prybe/repos","events_url":"https://api.github.com/users/Prybe/events{/privacy}","received_events_url":"https://api.github.com/users/Prybe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-12T07:50:48Z","updated_at":"2015-10-12T08:02:45Z","closed_at":"2015-10-12T08:02:45Z","body":"Hi, \r\n\r\n I followed the sample for a simple rollup. \r\n\r\n _self.Parent[\"Custom.RemainingWork\"] = (double)self.Parent[\"Custom.RemainingWork\"] + (double)self[\"Microsoft.VSTS.Scheduling.RemainingWork\"]; \r\n\r\n It works fine. \r\n\r\n But the Problem is that the parent value will be increased with every change. \r\n If the child has a value of 5, the parent value will be increased by 5. \r\n When I change the child value from 5 to 2, the parent value will be increased be 2. \r\n But it should be decreased with 3. \r\n\r\n So I want to aggregate the difference from the new value to the old value and not the raw new value only. \r\n I need to decrease the parent value also. \r\n\r\n Could you help me please? \r\n What can I do to achieve this goal? \r\n\r\n thanks in advance \r\n Martin"}}