{"action":"created","issue":{"url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/40","labels_url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/40/comments","events_url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/40/events","html_url":"https://github.com/devscoutsweden/scoutapi/issues/40","id":68450659,"number":40,"title":"API for related activities","user":{"login":"mikaelsvensson","id":789455,"avatar_url":"https://avatars.githubusercontent.com/u/789455?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelsvensson","html_url":"https://github.com/mikaelsvensson","followers_url":"https://api.github.com/users/mikaelsvensson/followers","following_url":"https://api.github.com/users/mikaelsvensson/following{/other_user}","gists_url":"https://api.github.com/users/mikaelsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelsvensson/subscriptions","organizations_url":"https://api.github.com/users/mikaelsvensson/orgs","repos_url":"https://api.github.com/users/mikaelsvensson/repos","events_url":"https://api.github.com/users/mikaelsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelsvensson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/devscoutsweden/scoutapi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mikaelsvensson","id":789455,"avatar_url":"https://avatars.githubusercontent.com/u/789455?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelsvensson","html_url":"https://github.com/mikaelsvensson","followers_url":"https://api.github.com/users/mikaelsvensson/followers","following_url":"https://api.github.com/users/mikaelsvensson/following{/other_user}","gists_url":"https://api.github.com/users/mikaelsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelsvensson/subscriptions","organizations_url":"https://api.github.com/users/mikaelsvensson/orgs","repos_url":"https://api.github.com/users/mikaelsvensson/repos","events_url":"https://api.github.com/users/mikaelsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelsvensson/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-14T17:34:37Z","updated_at":"2015-04-17T15:32:33Z","closed_at":null,"body":"Add support for linking one activity to another, i.e. make it possible for clients to show a list of similar/related activities when displaying a particular activity.\r\n\r\nThe API should be able to differentiate between relations created by \"some robot\" and relations created by humans. The functional difference is that \"robot relations\" (i.e. auto-generated relations) may be deleted at any time. More specifically, setting auto-generated relations for an activity deletes all pre-existing relations for that activity before adding the new ones.\r\n\r\nWhen GETting an activity: List of related activity ids is returned. Titles, or other pieces of information, for the related activites should not be returned by the API (in order to conserve bandwidth for mobile users)."},"comment":{"url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/comments/94010092","html_url":"https://github.com/devscoutsweden/scoutapi/issues/40#issuecomment-94010092","issue_url":"https://api.github.com/repos/devscoutsweden/scoutapi/issues/40","id":94010092,"user":{"login":"mikaelsvensson","id":789455,"avatar_url":"https://avatars.githubusercontent.com/u/789455?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelsvensson","html_url":"https://github.com/mikaelsvensson","followers_url":"https://api.github.com/users/mikaelsvensson/followers","following_url":"https://api.github.com/users/mikaelsvensson/following{/other_user}","gists_url":"https://api.github.com/users/mikaelsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelsvensson/subscriptions","organizations_url":"https://api.github.com/users/mikaelsvensson/orgs","repos_url":"https://api.github.com/users/mikaelsvensson/repos","events_url":"https://api.github.com/users/mikaelsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelsvensson/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:32:33Z","updated_at":"2015-04-17T15:32:33Z","body":"On 2015-04-14 23:24, TheSwedishScout wrote:\n>\n> would it be possible to have something similar with static id, for \n> activity series or assign in this some that are always there?\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/devscoutsweden/scoutapi/issues/40#issuecomment-93067591>.\n>\nAt the moment, I would suggest using categories for this functionality \nsince a category can be thought of as a named list of activities. \nCategories are (fortunately?) global and public.\n\nCreating an activity serie using categories would (probably) entain \nthese steps:\n1. Create the activity. I would recommend setting the category's group \nto the user's id or name.\n2. Update each activity belonging to this serie/category. I would \nrecommend first GETting the activity, modifying the response to add the \nnew category's id and then PUTting the modified response to update the \nactivity with the additional category.\n\nDocs:\nhttps://github.com/devscoutsweden/scoutapi/blob/dev/README.API.rdoc#create-new-category\nhttps://github.com/devscoutsweden/scoutapi/blob/dev/README.API.Activities.rdoc#readshow-activity\nhttps://github.com/devscoutsweden/scoutapi/blob/dev/README.API.Activities.rdoc#update-activity\n\nNote: \"Proper\" activity series support has been discussed but other \nfeatures have been considered more important.\n"}}