{"action":"closed","issue":{"url":"https://api.github.com/repos/carekit-apple/CareKit/issues/52","repository_url":"https://api.github.com/repos/carekit-apple/CareKit","labels_url":"https://api.github.com/repos/carekit-apple/CareKit/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/carekit-apple/CareKit/issues/52/comments","events_url":"https://api.github.com/repos/carekit-apple/CareKit/issues/52/events","html_url":"https://github.com/carekit-apple/CareKit/issues/52","id":156127659,"number":52,"title":"How to get the last selected intervention event?","user":{"login":"ninoguba","id":4361804,"avatar_url":"https://avatars.githubusercontent.com/u/4361804?v=3","gravatar_id":"","url":"https://api.github.com/users/ninoguba","html_url":"https://github.com/ninoguba","followers_url":"https://api.github.com/users/ninoguba/followers","following_url":"https://api.github.com/users/ninoguba/following{/other_user}","gists_url":"https://api.github.com/users/ninoguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ninoguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninoguba/subscriptions","organizations_url":"https://api.github.com/users/ninoguba/orgs","repos_url":"https://api.github.com/users/ninoguba/repos","events_url":"https://api.github.com/users/ninoguba/events{/privacy}","received_events_url":"https://api.github.com/users/ninoguba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/carekit-apple/CareKit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-22T00:07:55Z","updated_at":"2016-07-07T21:23:30Z","closed_at":"2016-07-07T21:23:30Z","body":"With SymptomTrackerViewController, it provides the lastSelectedAssessmentEvent method to get access to the last assessment event.\r\n\r\nI need the same for CareCardViewController but unfortunately it's not provided.\r\n\r\nWhat I'm doing is present a custom TaskViewController on the didSelectRowWithInterventionActivity and didSelectButtonWithInterventionEvent delegates of the CareCardViewController but once the TaskViewController finishes with .Completed reason, I need to do something and I need to know the exact InterventionEvent that initiated it.     Would be great if the CareCardViewController can also provide the last selected Intervention Event.\r\n\r\nAny suggestions how to do this?\r\n\r\n"}}
{"actor":{"display_login":"ninoguba"}}