{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments/281548148","pull_request_review_id":234398800,"id":281548148,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MTU0ODE0OA==","diff_hunk":"@@ -68,7 +71,8 @@ public IssueEventWorkflow(ValidateCaseData validateCaseData,\n         this.getPetitionIssueFee = getPetitionIssueFee;\n         this.coRespondentLetterGenerator = coRespondentLetterGenerator;\n         this.caseFormatterAddDocuments = caseFormatterAddDocuments;\n-        this.resetAosLinkingFields = resetAosLinkingFields;","path":"src/main/java/uk/gov/hmcts/reform/divorce/orchestration/workflows/IssueEventWorkflow.java","position":34,"original_position":34,"commit_id":"8df14e22315aa48fceededf1634d87774b1de37b","original_commit_id":"8df14e22315aa48fceededf1634d87774b1de37b","user":{"login":"hosainnet","id":629600,"node_id":"MDQ6VXNlcjYyOTYwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/629600?v=4","gravatar_id":"","url":"https://api.github.com/users/hosainnet","html_url":"https://github.com/hosainnet","followers_url":"https://api.github.com/users/hosainnet/followers","following_url":"https://api.github.com/users/hosainnet/following{/other_user}","gists_url":"https://api.github.com/users/hosainnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hosainnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosainnet/subscriptions","organizations_url":"https://api.github.com/users/hosainnet/orgs","repos_url":"https://api.github.com/users/hosainnet/repos","events_url":"https://api.github.com/users/hosainnet/events{/privacy}","received_events_url":"https://api.github.com/users/hosainnet/received_events","type":"User","site_admin":false},"body":"This task has been split into two as mentioned above","created_at":"2019-05-07T09:30:44Z","updated_at":"2019-05-07T09:36:46Z","html_url":"https://github.com/hmcts/div-case-orchestration-service/pull/256#discussion_r281548148","pull_request_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments/281548148"},"html":{"href":"https://github.com/hmcts/div-case-orchestration-service/pull/256#discussion_r281548148"},"pull_request":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256","id":275317794,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc1MzE3Nzk0","html_url":"https://github.com/hmcts/div-case-orchestration-service/pull/256","diff_url":"https://github.com/hmcts/div-case-orchestration-service/pull/256.diff","patch_url":"https://github.com/hmcts/div-case-orchestration-service/pull/256.patch","issue_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/256","number":256,"state":"open","locked":false,"title":"DIV-4633 - Email AOS invitation to respondent's solcitior","user":{"login":"hosainnet","id":629600,"node_id":"MDQ6VXNlcjYyOTYwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/629600?v=4","gravatar_id":"","url":"https://api.github.com/users/hosainnet","html_url":"https://github.com/hosainnet","followers_url":"https://api.github.com/users/hosainnet/followers","following_url":"https://api.github.com/users/hosainnet/following{/other_user}","gists_url":"https://api.github.com/users/hosainnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hosainnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosainnet/subscriptions","organizations_url":"https://api.github.com/users/hosainnet/orgs","repos_url":"https://api.github.com/users/hosainnet/repos","events_url":"https://api.github.com/users/hosainnet/events{/privacy}","received_events_url":"https://api.github.com/users/hosainnet/received_events","type":"User","site_admin":false},"body":"# Description\r\n\r\nFollowing on from #255  - when a respondent nominates a solcitior, we need to:\r\n\r\n* Generate an access code/letter ID (as we do with when we issue AOS pack)\r\n* Send an email to the Respondent's solicitor with the access code\r\n\r\nContext:\r\n\r\n```\r\nCurrently, the respondent can provide a response as to whether or not they agree with the divorce.\r\n\r\nWe're introducing a frontend change in the respondent journey to allow them to nominate a solicitor to respond on their behalf.\r\n\r\nThis is the BE change that supports this, which updates the /submit-aos endpoint to handle the respondent being able to nominate a solicitor\r\n\r\nThis means:\r\n\r\n    Trigger a new event aosNominateSol which moves the case to a new state AosAwaitingSol when the respondent nominates a solicitor\r\n    Do not set the respondent recieved/date fields as technically the respondent has not responsed, but chosen to nominate a solicitor - once the solicitor responds, those fields will be set as part of that story\r\n\r\nThe required CCD changes have been applied in CCD_Divorce_v113.10-v29-AAT\r\n```\r\n\r\nFixes #DIV-4633\r\n\r\n## Type of change\r\n\r\n- [x] New feature (non-breaking change which adds functionality)\r\n\r\n# Checklist:\r\n\r\n- [x] My code follows the style guidelines of this project\r\n- [x] I have performed a self-review of my own code\r\n- [x] I have commented my code, particularly in hard-to-understand areas\r\n- [x] I have made corresponding changes to the documentation\r\n- [x] My changes generate no new warnings\r\n- [x] I have added tests that prove my fix is effective or that my feature works\r\n- [x] New and existing unit tests pass locally with my changes\r\n- [x] Any dependent changes have been merged and published in downstream modules\r\n","created_at":"2019-05-02T11:02:15Z","updated_at":"2019-05-07T09:36:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0967bdee439af26d714fe09d9f836acc145b7371","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1344561620,"node_id":"MDU6TGFiZWwxMzQ0NTYxNjIw","url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/labels/ns:div-cos-pr-256","name":"ns:div-cos-pr-256","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256/commits","review_comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256/comments","review_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/256/comments","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/8df14e22315aa48fceededf1634d87774b1de37b","head":{"label":"hmcts:DIV-4633_respondent_sol_email","ref":"DIV-4633_respondent_sol_email","sha":"8df14e22315aa48fceededf1634d87774b1de37b","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":142584193,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1ODQxOTM=","name":"div-case-orchestration-service","full_name":"hmcts/div-case-orchestration-service","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/div-case-orchestration-service","description":"Divorce service to handle case orchestration","fork":false,"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service","forks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/forks","keys_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/teams","hooks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/hooks","issue_events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/events","assignees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/tags","blobs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/languages","stargazers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/stargazers","contributors_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contributors","subscribers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscribers","subscription_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscription","commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/merges","archive_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/downloads","issues_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/deployments","created_at":"2018-07-27T14:00:58Z","updated_at":"2019-05-03T16:11:12Z","pushed_at":"2019-05-07T09:18:56Z","git_url":"git://github.com/hmcts/div-case-orchestration-service.git","ssh_url":"git@github.com:hmcts/div-case-orchestration-service.git","clone_url":"https://github.com/hmcts/div-case-orchestration-service.git","svn_url":"https://github.com/hmcts/div-case-orchestration-service","homepage":null,"size":5654,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"913a1f694e798cadb18d69dee175e2911be3f0f8","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":142584193,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1ODQxOTM=","name":"div-case-orchestration-service","full_name":"hmcts/div-case-orchestration-service","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/div-case-orchestration-service","description":"Divorce service to handle case orchestration","fork":false,"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service","forks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/forks","keys_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/teams","hooks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/hooks","issue_events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/events","assignees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/tags","blobs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/languages","stargazers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/stargazers","contributors_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contributors","subscribers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscribers","subscription_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscription","commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/merges","archive_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/downloads","issues_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/deployments","created_at":"2018-07-27T14:00:58Z","updated_at":"2019-05-03T16:11:12Z","pushed_at":"2019-05-07T09:18:56Z","git_url":"git://github.com/hmcts/div-case-orchestration-service.git","ssh_url":"git@github.com:hmcts/div-case-orchestration-service.git","clone_url":"https://github.com/hmcts/div-case-orchestration-service.git","svn_url":"https://github.com/hmcts/div-case-orchestration-service","homepage":null,"size":5654,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256"},"html":{"href":"https://github.com/hmcts/div-case-orchestration-service/pull/256"},"issue":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/256"},"comments":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/8df14e22315aa48fceededf1634d87774b1de37b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hosainnet"}}