{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments/31201108","id":31201108,"diff_hunk":"@@ -32,9 +49,18 @@ def create_issue(summary, full_description, project)\n             ]\n           }\n         }\n-        issue.save(issue_json)\n-        url = get_options[:site] + '/browse/' + issue.key\n-        puts \"Created issue #{issue.key} at #{url}\"\n+        # FIXME - would this work\n+        components = []\n+        if components.size?\n+          issue_json['fields']['components'] = components","path":"files/jira.rb","position":43,"original_position":43,"commit_id":"e971bc4573db2ee15a5cd1ce700bec2f6a828377","original_commit_id":"e971bc4573db2ee15a5cd1ce700bec2f6a828377","user":{"login":"solarkennedy","id":370205,"avatar_url":"https://avatars.githubusercontent.com/u/370205?v=3","gravatar_id":"","url":"https://api.github.com/users/solarkennedy","html_url":"https://github.com/solarkennedy","followers_url":"https://api.github.com/users/solarkennedy/followers","following_url":"https://api.github.com/users/solarkennedy/following{/other_user}","gists_url":"https://api.github.com/users/solarkennedy/gists{/gist_id}","starred_url":"https://api.github.com/users/solarkennedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solarkennedy/subscriptions","organizations_url":"https://api.github.com/users/solarkennedy/orgs","repos_url":"https://api.github.com/users/solarkennedy/repos","events_url":"https://api.github.com/users/solarkennedy/events{/privacy}","received_events_url":"https://api.github.com/users/solarkennedy/received_events","type":"User","site_admin":false},"body":"Gotcha. I'm a little worried about scope creep, @jaxxstorm mentioned that his company adds arbitrary fields all the time. I'm just worried about this handler getting more and more complex over time.","created_at":"2015-05-28T03:42:33Z","updated_at":"2015-05-28T03:42:33Z","html_url":"https://github.com/Yelp/sensu_handlers/pull/30#discussion_r31201108","pull_request_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments/31201108"},"html":{"href":"https://github.com/Yelp/sensu_handlers/pull/30#discussion_r31201108"},"pull_request":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30","id":31627393,"html_url":"https://github.com/Yelp/sensu_handlers/pull/30","diff_url":"https://github.com/Yelp/sensu_handlers/pull/30.diff","patch_url":"https://github.com/Yelp/sensu_handlers/pull/30.patch","issue_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/30","number":30,"state":"open","locked":false,"title":"Better error handling for JIRA + maybe component support","user":{"login":"bobtfish","id":42338,"avatar_url":"https://avatars.githubusercontent.com/u/42338?v=3","gravatar_id":"","url":"https://api.github.com/users/bobtfish","html_url":"https://github.com/bobtfish","followers_url":"https://api.github.com/users/bobtfish/followers","following_url":"https://api.github.com/users/bobtfish/following{/other_user}","gists_url":"https://api.github.com/users/bobtfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bobtfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobtfish/subscriptions","organizations_url":"https://api.github.com/users/bobtfish/orgs","repos_url":"https://api.github.com/users/bobtfish/repos","events_url":"https://api.github.com/users/bobtfish/events{/privacy}","received_events_url":"https://api.github.com/users/bobtfish/received_events","type":"User","site_admin":false},"body":"cc @poros\r\n\r\nDoes this look reasonable people who've worked on this before - @solarkennedy @keymone ?\r\n\r\nIf so I'll continue and try to get components working properly, which we need for INFRA","created_at":"2015-03-20T16:08:52Z","updated_at":"2015-05-28T03:42:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89d8bdabcbc04d24c9b66df2f41259b3793f8dd1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30/commits","review_comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30/comments","review_comment_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/30/comments","statuses_url":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/e971bc4573db2ee15a5cd1ce700bec2f6a828377","head":{"label":"Yelp:jira_errorhandling_components","ref":"jira_errorhandling_components","sha":"e971bc4573db2ee15a5cd1ce700bec2f6a828377","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":22772241,"name":"sensu_handlers","full_name":"Yelp/sensu_handlers","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/sensu_handlers","description":"Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json","fork":false,"url":"https://api.github.com/repos/Yelp/sensu_handlers","forks_url":"https://api.github.com/repos/Yelp/sensu_handlers/forks","keys_url":"https://api.github.com/repos/Yelp/sensu_handlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/sensu_handlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/sensu_handlers/teams","hooks_url":"https://api.github.com/repos/Yelp/sensu_handlers/hooks","issue_events_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/sensu_handlers/events","assignees_url":"https://api.github.com/repos/Yelp/sensu_handlers/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/sensu_handlers/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/tags","blobs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/sensu_handlers/languages","stargazers_url":"https://api.github.com/repos/Yelp/sensu_handlers/stargazers","contributors_url":"https://api.github.com/repos/Yelp/sensu_handlers/contributors","subscribers_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscribers","subscription_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscription","commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/sensu_handlers/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/sensu_handlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/sensu_handlers/merges","archive_url":"https://api.github.com/repos/Yelp/sensu_handlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/sensu_handlers/downloads","issues_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/sensu_handlers/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/sensu_handlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/sensu_handlers/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/sensu_handlers/releases{/id}","created_at":"2014-08-08T21:35:51Z","updated_at":"2015-05-12T06:53:43Z","pushed_at":"2015-05-01T17:05:48Z","git_url":"git://github.com/Yelp/sensu_handlers.git","ssh_url":"git@github.com:Yelp/sensu_handlers.git","clone_url":"https://github.com/Yelp/sensu_handlers.git","svn_url":"https://github.com/Yelp/sensu_handlers","homepage":null,"size":821,"stargazers_count":20,"watchers_count":20,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":20,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"130473a0ae2da617f5a673bc36dbc1e0c3079505","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":22772241,"name":"sensu_handlers","full_name":"Yelp/sensu_handlers","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/sensu_handlers","description":"Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json","fork":false,"url":"https://api.github.com/repos/Yelp/sensu_handlers","forks_url":"https://api.github.com/repos/Yelp/sensu_handlers/forks","keys_url":"https://api.github.com/repos/Yelp/sensu_handlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/sensu_handlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/sensu_handlers/teams","hooks_url":"https://api.github.com/repos/Yelp/sensu_handlers/hooks","issue_events_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/sensu_handlers/events","assignees_url":"https://api.github.com/repos/Yelp/sensu_handlers/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/sensu_handlers/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/tags","blobs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/sensu_handlers/languages","stargazers_url":"https://api.github.com/repos/Yelp/sensu_handlers/stargazers","contributors_url":"https://api.github.com/repos/Yelp/sensu_handlers/contributors","subscribers_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscribers","subscription_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscription","commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/sensu_handlers/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/sensu_handlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/sensu_handlers/merges","archive_url":"https://api.github.com/repos/Yelp/sensu_handlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/sensu_handlers/downloads","issues_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/sensu_handlers/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/sensu_handlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/sensu_handlers/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/sensu_handlers/releases{/id}","created_at":"2014-08-08T21:35:51Z","updated_at":"2015-05-12T06:53:43Z","pushed_at":"2015-05-01T17:05:48Z","git_url":"git://github.com/Yelp/sensu_handlers.git","ssh_url":"git@github.com:Yelp/sensu_handlers.git","clone_url":"https://github.com/Yelp/sensu_handlers.git","svn_url":"https://github.com/Yelp/sensu_handlers","homepage":null,"size":821,"stargazers_count":20,"watchers_count":20,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30"},"html":{"href":"https://github.com/Yelp/sensu_handlers/pull/30"},"issue":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/issues/30"},"comments":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/e971bc4573db2ee15a5cd1ce700bec2f6a828377"}}}}