{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/jsprit/issues/242","repository_url":"https://api.github.com/repos/graphhopper/jsprit","labels_url":"https://api.github.com/repos/graphhopper/jsprit/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/jsprit/issues/242/comments","events_url":"https://api.github.com/repos/graphhopper/jsprit/issues/242/events","html_url":"https://github.com/graphhopper/jsprit/issues/242","id":156579519,"number":242,"title":"assign priorities to jobs","user":{"login":"oblonski","id":5714926,"avatar_url":"https://avatars2.githubusercontent.com/u/5714926?v=3","gravatar_id":"","url":"https://api.github.com/users/oblonski","html_url":"https://github.com/oblonski","followers_url":"https://api.github.com/users/oblonski/followers","following_url":"https://api.github.com/users/oblonski/following{/other_user}","gists_url":"https://api.github.com/users/oblonski/gists{/gist_id}","starred_url":"https://api.github.com/users/oblonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblonski/subscriptions","organizations_url":"https://api.github.com/users/oblonski/orgs","repos_url":"https://api.github.com/users/oblonski/repos","events_url":"https://api.github.com/users/oblonski/events{/privacy}","received_events_url":"https://api.github.com/users/oblonski/received_events","type":"User","site_admin":false},"labels":[{"id":62337603,"url":"https://api.github.com/repos/graphhopper/jsprit/labels/feature","name":"feature","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"oblonski","id":5714926,"avatar_url":"https://avatars2.githubusercontent.com/u/5714926?v=3","gravatar_id":"","url":"https://api.github.com/users/oblonski","html_url":"https://github.com/oblonski","followers_url":"https://api.github.com/users/oblonski/followers","following_url":"https://api.github.com/users/oblonski/following{/other_user}","gists_url":"https://api.github.com/users/oblonski/gists{/gist_id}","starred_url":"https://api.github.com/users/oblonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblonski/subscriptions","organizations_url":"https://api.github.com/users/oblonski/orgs","repos_url":"https://api.github.com/users/oblonski/repos","events_url":"https://api.github.com/users/oblonski/events{/privacy}","received_events_url":"https://api.github.com/users/oblonski/received_events","type":"User","site_admin":false},"assignees":[{"login":"oblonski","id":5714926,"avatar_url":"https://avatars2.githubusercontent.com/u/5714926?v=3","gravatar_id":"","url":"https://api.github.com/users/oblonski","html_url":"https://github.com/oblonski","followers_url":"https://api.github.com/users/oblonski/followers","following_url":"https://api.github.com/users/oblonski/following{/other_user}","gists_url":"https://api.github.com/users/oblonski/gists{/gist_id}","starred_url":"https://api.github.com/users/oblonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblonski/subscriptions","organizations_url":"https://api.github.com/users/oblonski/orgs","repos_url":"https://api.github.com/users/oblonski/repos","events_url":"https://api.github.com/users/oblonski/events{/privacy}","received_events_url":"https://api.github.com/users/oblonski/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-05-24T18:39:03Z","updated_at":"2017-05-16T14:19:05Z","closed_at":"2016-05-25T08:21:27Z","body":"Often there are more customers than the available vehicle fleet can serve. Then it would be nice to assign priorities to customers that must be served to differentiate them from those that can be served later or omitted at all.\n"},"comment":{"url":"https://api.github.com/repos/graphhopper/jsprit/issues/comments/301797074","html_url":"https://github.com/graphhopper/jsprit/issues/242#issuecomment-301797074","issue_url":"https://api.github.com/repos/graphhopper/jsprit/issues/242","id":301797074,"user":{"login":"jsroyal","id":10773353,"avatar_url":"https://avatars1.githubusercontent.com/u/10773353?v=3","gravatar_id":"","url":"https://api.github.com/users/jsroyal","html_url":"https://github.com/jsroyal","followers_url":"https://api.github.com/users/jsroyal/followers","following_url":"https://api.github.com/users/jsroyal/following{/other_user}","gists_url":"https://api.github.com/users/jsroyal/gists{/gist_id}","starred_url":"https://api.github.com/users/jsroyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsroyal/subscriptions","organizations_url":"https://api.github.com/users/jsroyal/orgs","repos_url":"https://api.github.com/users/jsroyal/repos","events_url":"https://api.github.com/users/jsroyal/events{/privacy}","received_events_url":"https://api.github.com/users/jsroyal/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T14:19:05Z","updated_at":"2017-05-16T14:19:05Z","body":"Hi! @oblonski\r\nI running this example to a variable the value of priority but it does not give expected value.\r\n```\r\nService service1 = Service.Builder.newInstance(\"1\").setPriority(2).addSizeDimension(WEIGHT_INDEX, 1).setLocation(Location.newInstance(5, 7)).build();\r\n        Service service2 = Service.Builder.newInstance(\"2\").setPriority(4).addSizeDimension(WEIGHT_INDEX, 1).setLocation(Location.newInstance(5, 13)).build();\r\n\r\n        Service service3 = Service.Builder.newInstance(\"3\").setPriority(4).addSizeDimension(WEIGHT_INDEX, 1).setLocation(Location.newInstance(15, 7)).build();\r\n        Service service4 = Service.Builder.newInstance(\"4\").setPriority(4).addSizeDimension(WEIGHT_INDEX, 1).setLocation(Location.newInstance(15, 13)).build();\r\n```\r\n"}}
{"actor":{"display_login":"jsroyal"}}