{"action":"created","issue":{"url":"https://api.github.com/repos/javers/javers/issues/98","labels_url":"https://api.github.com/repos/javers/javers/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/javers/javers/issues/98/comments","events_url":"https://api.github.com/repos/javers/javers/issues/98/events","html_url":"https://github.com/javers/javers/issues/98","id":57167380,"number":98,"title":"Track changes in collection","user":{"login":"efreet007","id":3585046,"avatar_url":"https://avatars.githubusercontent.com/u/3585046?v=3","gravatar_id":"","url":"https://api.github.com/users/efreet007","html_url":"https://github.com/efreet007","followers_url":"https://api.github.com/users/efreet007/followers","following_url":"https://api.github.com/users/efreet007/following{/other_user}","gists_url":"https://api.github.com/users/efreet007/gists{/gist_id}","starred_url":"https://api.github.com/users/efreet007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efreet007/subscriptions","organizations_url":"https://api.github.com/users/efreet007/orgs","repos_url":"https://api.github.com/users/efreet007/repos","events_url":"https://api.github.com/users/efreet007/events{/privacy}","received_events_url":"https://api.github.com/users/efreet007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars.githubusercontent.com/u/2511028?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-10T12:18:22Z","updated_at":"2015-02-10T15:40:48Z","closed_at":null,"body":"Is it possible to track changes in collection element properties?\r\nFor example:\r\n        \r\n        @Test\r\n        public void shouldTrackSubordinateSalaryChanges() {\r\n            // given:\r\n            Javers javers = JaversBuilder.javers().build();\r\n            Employee bob = new Employee(\"Bob\", 9_000, \"Scrum master\" );\r\n            bob.addSubordinates(new Employee(\"Trainee One\", 1_000));\r\n            javers.commit(\"hr.manager\", bob);\r\n\r\n            bob.getSubordinates().get(0).setSalary(1_200);\r\n            javers.commit(\"hr.manager\", bob);\r\n\r\n            // when:\r\n            List<Change> changes = javers.getChangeHistory(InstanceIdDTO.instanceId(\"Bob\", Employee.class),5);\r\n\r\n            // then:\r\n            assertThat(changes).hasSize(2).overridingErrorMessage(\"Expecting NewObject change and ValueChange change for salary\");\r\n\r\n        }"},"comment":{"url":"https://api.github.com/repos/javers/javers/issues/comments/73721029","html_url":"https://github.com/javers/javers/issues/98#issuecomment-73721029","issue_url":"https://api.github.com/repos/javers/javers/issues/98","id":73721029,"user":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars.githubusercontent.com/u/2511028?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T15:40:48Z","updated_at":"2015-02-10T15:40:48Z","body":"Not sure what do you mean. In this example you have ValueChange (salary) but on Trainee not Bob. Why you expect to see it on Bob's change history?"}}