{"action":"created","issue":{"url":"https://api.github.com/repos/almighty/almighty-core/issues/322","repository_url":"https://api.github.com/repos/almighty/almighty-core","labels_url":"https://api.github.com/repos/almighty/almighty-core/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/almighty/almighty-core/issues/322/comments","events_url":"https://api.github.com/repos/almighty/almighty-core/issues/322/events","html_url":"https://github.com/almighty/almighty-core/issues/322","id":180262709,"number":322,"title":"Create and Read Work Item Link","user":{"login":"aslakknutsen","id":132158,"avatar_url":"https://avatars.githubusercontent.com/u/132158?v=3","gravatar_id":"","url":"https://api.github.com/users/aslakknutsen","html_url":"https://github.com/aslakknutsen","followers_url":"https://api.github.com/users/aslakknutsen/followers","following_url":"https://api.github.com/users/aslakknutsen/following{/other_user}","gists_url":"https://api.github.com/users/aslakknutsen/gists{/gist_id}","starred_url":"https://api.github.com/users/aslakknutsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslakknutsen/subscriptions","organizations_url":"https://api.github.com/users/aslakknutsen/orgs","repos_url":"https://api.github.com/users/aslakknutsen/repos","events_url":"https://api.github.com/users/aslakknutsen/events{/privacy}","received_events_url":"https://api.github.com/users/aslakknutsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almighty/almighty-core/labels/REST","name":"REST","color":"f9d0c4"}],"state":"open","locked":false,"assignee":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"assignees":[{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/almighty/almighty-core/milestones/5","html_url":"https://github.com/almighty/almighty-core/milestones/Sprint%20%23121","labels_url":"https://api.github.com/repos/almighty/almighty-core/milestones/5/labels","id":2028780,"number":5,"title":"Sprint #121","description":"Goals: https://github.com/almighty/almighty-core/issues/284\r\n","creator":{"login":"maxandersen","id":54129,"avatar_url":"https://avatars.githubusercontent.com/u/54129?v=3","gravatar_id":"","url":"https://api.github.com/users/maxandersen","html_url":"https://github.com/maxandersen","followers_url":"https://api.github.com/users/maxandersen/followers","following_url":"https://api.github.com/users/maxandersen/following{/other_user}","gists_url":"https://api.github.com/users/maxandersen/gists{/gist_id}","starred_url":"https://api.github.com/users/maxandersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxandersen/subscriptions","organizations_url":"https://api.github.com/users/maxandersen/orgs","repos_url":"https://api.github.com/users/maxandersen/repos","events_url":"https://api.github.com/users/maxandersen/events{/privacy}","received_events_url":"https://api.github.com/users/maxandersen/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":3,"state":"open","created_at":"2016-09-26T13:04:27Z","updated_at":"2016-10-03T09:49:19Z","due_on":"2016-10-18T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-09-30T09:42:38Z","updated_at":"2016-10-04T13:48:14Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/almighty/almighty-core/issues/comments/251392617","html_url":"https://github.com/almighty/almighty-core/issues/322#issuecomment-251392617","issue_url":"https://api.github.com/repos/almighty/almighty-core/issues/322","id":251392617,"user":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T13:48:14Z","updated_at":"2016-10-04T13:48:14Z","body":"@aslakknutsen See https://github.com/almighty/almighty-core/issues/323#issuecomment-251388242 for the discussion about the types.\r\n\r\nBased on your answer and the `GET /api/workitem/N` response I see that we're resolving all relevant info on a linked work item in the response. That's okay.\r\n\r\nSince this issue is titled \"Create and Read Work Item Link\", I assume that updating (e.g. adding a link to an existing set of links) or removing a link shall not be part of the change to fix this issue, right?\r\n\r\nI'm asking because we may want to include the internal `ID` of a link in the list of links in the response. This would allow the UI to refer to a link more precisely, don't you think? This can of course be added later. I just wanted to make sure that it isn't the `\"id\"` field from your response. You `\"id\"` field is probably intended for the UI to show text somewhere.\r\n\r\n@aslakknutsen Does, the `\"self\"` field mean that the linked item is an internal work item and not some remote one?\r\n\r\nI'm not sure that we should include any of the `system.*` fields in the `GET` response. It may seem okay for now. But for close-to-real-time updates (if we ever want this) on the page this might cause us a lot of trouble in the long run. I have dealt with such problems in the past and used [meteor](https://www.meteor.com/) to get rid of the REST APIs."}}
{"actor":{"display_login":"kwk"}}