{"action":"created","comment":{"url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/comments/34780325","id":34780325,"diff_hunk":"@@ -122,58 +115,40 @@ public void updateComment(IssueComment issueComment) {\n      * @throws IssueTrackerUpdateException\n      */\n     public String getStatusFor(final String issueKey) throws IssueTrackerUpdateException {\n-        throw new NotImplementedException(\"TODO\");\n-//        String status = null;\n-//        try {\n-//            String token = jiraConnection.getAuthenticationToken();\n-//\n-//            RemoteIssue issue = jiraConnection.getJiraSoapService().getIssue(token, issueKey);\n-//            checkThatIssueExists(issue, issueKey);\n-//            status = getStatusLabel(issue);\n-//\n-//        } catch (IOException e) {\n-//            processJiraException(issueKey, e);\n-//        }\n-//        return status;\n+        try {\n+            Optional<IssueSummary> issue = jiraConnection.getRestJiraClient().loadByKey(issueKey);\n+            return issue.get().getStatus();","path":"serenity-jira-plugin/src/main/java/net/serenitybdd/plugins/jira/service/JiraIssueTracker.java","position":115,"original_position":115,"commit_id":"2fd18c1f68af34db0675b948d9ab2065ec3dc31d","original_commit_id":"2fd18c1f68af34db0675b948d9ab2065ec3dc31d","user":{"login":"wakaleo","id":55986,"avatar_url":"https://avatars.githubusercontent.com/u/55986?v=3","gravatar_id":"","url":"https://api.github.com/users/wakaleo","html_url":"https://github.com/wakaleo","followers_url":"https://api.github.com/users/wakaleo/followers","following_url":"https://api.github.com/users/wakaleo/following{/other_user}","gists_url":"https://api.github.com/users/wakaleo/gists{/gist_id}","starred_url":"https://api.github.com/users/wakaleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakaleo/subscriptions","organizations_url":"https://api.github.com/users/wakaleo/orgs","repos_url":"https://api.github.com/users/wakaleo/repos","events_url":"https://api.github.com/users/wakaleo/events{/privacy}","received_events_url":"https://api.github.com/users/wakaleo/received_events","type":"User","site_admin":false},"body":"getRestJiraClient() returns an Optional<>, but then you just use the get() assuming that the issue has been found. So the exception will be odd. It would probably make more sense to throw some special exception (e.g. IssueNotFoundException) in that case to make it easier to troubleshoot.\r\n","created_at":"2015-07-16T12:11:03Z","updated_at":"2015-07-16T12:11:03Z","html_url":"https://github.com/serenity-bdd/serenity-jira/pull/2#discussion_r34780325","pull_request_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/comments/34780325"},"html":{"href":"https://github.com/serenity-bdd/serenity-jira/pull/2#discussion_r34780325"},"pull_request":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2","id":39861219,"html_url":"https://github.com/serenity-bdd/serenity-jira/pull/2","diff_url":"https://github.com/serenity-bdd/serenity-jira/pull/2.diff","patch_url":"https://github.com/serenity-bdd/serenity-jira/pull/2.patch","issue_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/2","number":2,"state":"open","locked":false,"title":"start handling transitions","user":{"login":"cliviu","id":2623175,"avatar_url":"https://avatars.githubusercontent.com/u/2623175?v=3","gravatar_id":"","url":"https://api.github.com/users/cliviu","html_url":"https://github.com/cliviu","followers_url":"https://api.github.com/users/cliviu/followers","following_url":"https://api.github.com/users/cliviu/following{/other_user}","gists_url":"https://api.github.com/users/cliviu/gists{/gist_id}","starred_url":"https://api.github.com/users/cliviu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliviu/subscriptions","organizations_url":"https://api.github.com/users/cliviu/orgs","repos_url":"https://api.github.com/users/cliviu/repos","events_url":"https://api.github.com/users/cliviu/events{/privacy}","received_events_url":"https://api.github.com/users/cliviu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-13T21:56:44Z","updated_at":"2015-07-16T12:11:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e91acc2b5b65cf08c1ae141931a0108487f38ea2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2/commits","review_comments_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2/comments","review_comment_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/comments{/number}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/2/comments","statuses_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/statuses/2fd18c1f68af34db0675b948d9ab2065ec3dc31d","head":{"label":"cliviu:master","ref":"master","sha":"2fd18c1f68af34db0675b948d9ab2065ec3dc31d","user":{"login":"cliviu","id":2623175,"avatar_url":"https://avatars.githubusercontent.com/u/2623175?v=3","gravatar_id":"","url":"https://api.github.com/users/cliviu","html_url":"https://github.com/cliviu","followers_url":"https://api.github.com/users/cliviu/followers","following_url":"https://api.github.com/users/cliviu/following{/other_user}","gists_url":"https://api.github.com/users/cliviu/gists{/gist_id}","starred_url":"https://api.github.com/users/cliviu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliviu/subscriptions","organizations_url":"https://api.github.com/users/cliviu/orgs","repos_url":"https://api.github.com/users/cliviu/repos","events_url":"https://api.github.com/users/cliviu/events{/privacy}","received_events_url":"https://api.github.com/users/cliviu/received_events","type":"User","site_admin":false},"repo":{"id":38868002,"name":"serenity-jira","full_name":"cliviu/serenity-jira","owner":{"login":"cliviu","id":2623175,"avatar_url":"https://avatars.githubusercontent.com/u/2623175?v=3","gravatar_id":"","url":"https://api.github.com/users/cliviu","html_url":"https://github.com/cliviu","followers_url":"https://api.github.com/users/cliviu/followers","following_url":"https://api.github.com/users/cliviu/following{/other_user}","gists_url":"https://api.github.com/users/cliviu/gists{/gist_id}","starred_url":"https://api.github.com/users/cliviu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliviu/subscriptions","organizations_url":"https://api.github.com/users/cliviu/orgs","repos_url":"https://api.github.com/users/cliviu/repos","events_url":"https://api.github.com/users/cliviu/events{/privacy}","received_events_url":"https://api.github.com/users/cliviu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cliviu/serenity-jira","description":"","fork":true,"url":"https://api.github.com/repos/cliviu/serenity-jira","forks_url":"https://api.github.com/repos/cliviu/serenity-jira/forks","keys_url":"https://api.github.com/repos/cliviu/serenity-jira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cliviu/serenity-jira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cliviu/serenity-jira/teams","hooks_url":"https://api.github.com/repos/cliviu/serenity-jira/hooks","issue_events_url":"https://api.github.com/repos/cliviu/serenity-jira/issues/events{/number}","events_url":"https://api.github.com/repos/cliviu/serenity-jira/events","assignees_url":"https://api.github.com/repos/cliviu/serenity-jira/assignees{/user}","branches_url":"https://api.github.com/repos/cliviu/serenity-jira/branches{/branch}","tags_url":"https://api.github.com/repos/cliviu/serenity-jira/tags","blobs_url":"https://api.github.com/repos/cliviu/serenity-jira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cliviu/serenity-jira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cliviu/serenity-jira/git/refs{/sha}","trees_url":"https://api.github.com/repos/cliviu/serenity-jira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cliviu/serenity-jira/statuses/{sha}","languages_url":"https://api.github.com/repos/cliviu/serenity-jira/languages","stargazers_url":"https://api.github.com/repos/cliviu/serenity-jira/stargazers","contributors_url":"https://api.github.com/repos/cliviu/serenity-jira/contributors","subscribers_url":"https://api.github.com/repos/cliviu/serenity-jira/subscribers","subscription_url":"https://api.github.com/repos/cliviu/serenity-jira/subscription","commits_url":"https://api.github.com/repos/cliviu/serenity-jira/commits{/sha}","git_commits_url":"https://api.github.com/repos/cliviu/serenity-jira/git/commits{/sha}","comments_url":"https://api.github.com/repos/cliviu/serenity-jira/comments{/number}","issue_comment_url":"https://api.github.com/repos/cliviu/serenity-jira/issues/comments{/number}","contents_url":"https://api.github.com/repos/cliviu/serenity-jira/contents/{+path}","compare_url":"https://api.github.com/repos/cliviu/serenity-jira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cliviu/serenity-jira/merges","archive_url":"https://api.github.com/repos/cliviu/serenity-jira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cliviu/serenity-jira/downloads","issues_url":"https://api.github.com/repos/cliviu/serenity-jira/issues{/number}","pulls_url":"https://api.github.com/repos/cliviu/serenity-jira/pulls{/number}","milestones_url":"https://api.github.com/repos/cliviu/serenity-jira/milestones{/number}","notifications_url":"https://api.github.com/repos/cliviu/serenity-jira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cliviu/serenity-jira/labels{/name}","releases_url":"https://api.github.com/repos/cliviu/serenity-jira/releases{/id}","created_at":"2015-07-10T07:45:27Z","updated_at":"2015-07-10T07:45:27Z","pushed_at":"2015-07-15T21:12:38Z","git_url":"git://github.com/cliviu/serenity-jira.git","ssh_url":"git@github.com:cliviu/serenity-jira.git","clone_url":"https://github.com/cliviu/serenity-jira.git","svn_url":"https://github.com/cliviu/serenity-jira","homepage":null,"size":526,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"serenity-bdd:master","ref":"master","sha":"c652f18c36cd6c520e2a7d0726880fd4fd72d8ec","user":{"login":"serenity-bdd","id":9455201,"avatar_url":"https://avatars.githubusercontent.com/u/9455201?v=3","gravatar_id":"","url":"https://api.github.com/users/serenity-bdd","html_url":"https://github.com/serenity-bdd","followers_url":"https://api.github.com/users/serenity-bdd/followers","following_url":"https://api.github.com/users/serenity-bdd/following{/other_user}","gists_url":"https://api.github.com/users/serenity-bdd/gists{/gist_id}","starred_url":"https://api.github.com/users/serenity-bdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serenity-bdd/subscriptions","organizations_url":"https://api.github.com/users/serenity-bdd/orgs","repos_url":"https://api.github.com/users/serenity-bdd/repos","events_url":"https://api.github.com/users/serenity-bdd/events{/privacy}","received_events_url":"https://api.github.com/users/serenity-bdd/received_events","type":"Organization","site_admin":false},"repo":{"id":30097466,"name":"serenity-jira","full_name":"serenity-bdd/serenity-jira","owner":{"login":"serenity-bdd","id":9455201,"avatar_url":"https://avatars.githubusercontent.com/u/9455201?v=3","gravatar_id":"","url":"https://api.github.com/users/serenity-bdd","html_url":"https://github.com/serenity-bdd","followers_url":"https://api.github.com/users/serenity-bdd/followers","following_url":"https://api.github.com/users/serenity-bdd/following{/other_user}","gists_url":"https://api.github.com/users/serenity-bdd/gists{/gist_id}","starred_url":"https://api.github.com/users/serenity-bdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serenity-bdd/subscriptions","organizations_url":"https://api.github.com/users/serenity-bdd/orgs","repos_url":"https://api.github.com/users/serenity-bdd/repos","events_url":"https://api.github.com/users/serenity-bdd/events{/privacy}","received_events_url":"https://api.github.com/users/serenity-bdd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/serenity-bdd/serenity-jira","description":"","fork":false,"url":"https://api.github.com/repos/serenity-bdd/serenity-jira","forks_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/forks","keys_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/teams","hooks_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/hooks","issue_events_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/events{/number}","events_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/events","assignees_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/assignees{/user}","branches_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/branches{/branch}","tags_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/tags","blobs_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/git/refs{/sha}","trees_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/statuses/{sha}","languages_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/languages","stargazers_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/stargazers","contributors_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/contributors","subscribers_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/subscribers","subscription_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/subscription","commits_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/commits{/sha}","git_commits_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/git/commits{/sha}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/comments{/number}","issue_comment_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/comments{/number}","contents_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/contents/{+path}","compare_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/merges","archive_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/downloads","issues_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues{/number}","pulls_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls{/number}","milestones_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/milestones{/number}","notifications_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/labels{/name}","releases_url":"https://api.github.com/repos/serenity-bdd/serenity-jira/releases{/id}","created_at":"2015-01-31T00:46:41Z","updated_at":"2015-04-14T23:44:21Z","pushed_at":"2015-07-15T21:12:38Z","git_url":"git://github.com/serenity-bdd/serenity-jira.git","ssh_url":"git@github.com:serenity-bdd/serenity-jira.git","clone_url":"https://github.com/serenity-bdd/serenity-jira.git","svn_url":"https://github.com/serenity-bdd/serenity-jira","homepage":null,"size":611,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2"},"html":{"href":"https://github.com/serenity-bdd/serenity-jira/pull/2"},"issue":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/2"},"comments":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/serenity-bdd/serenity-jira/statuses/2fd18c1f68af34db0675b948d9ab2065ec3dc31d"}}}}