{"action":"opened","issue":{"url":"https://api.github.com/repos/devondragon/jira-omnifocus/issues/16","labels_url":"https://api.github.com/repos/devondragon/jira-omnifocus/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/devondragon/jira-omnifocus/issues/16/comments","events_url":"https://api.github.com/repos/devondragon/jira-omnifocus/issues/16/events","html_url":"https://github.com/devondragon/jira-omnifocus/issues/16","id":112269951,"number":16,"title":"Crashing on bad issue URI","user":{"login":"geordan","id":2914,"avatar_url":"https://avatars.githubusercontent.com/u/2914?v=3","gravatar_id":"","url":"https://api.github.com/users/geordan","html_url":"https://github.com/geordan","followers_url":"https://api.github.com/users/geordan/followers","following_url":"https://api.github.com/users/geordan/following{/other_user}","gists_url":"https://api.github.com/users/geordan/gists{/gist_id}","starred_url":"https://api.github.com/users/geordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geordan/subscriptions","organizations_url":"https://api.github.com/users/geordan/orgs","repos_url":"https://api.github.com/users/geordan/repos","events_url":"https://api.github.com/users/geordan/events{/privacy}","received_events_url":"https://api.github.com/users/geordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T02:06:48Z","updated_at":"2015-10-20T02:06:48Z","closed_at":null,"body":"Error when running .jiraomnifocus.rb\r\n`./jiraomnifocus.rb:240:in `block (2 levels) in mark_resolved_jira_tickets_as_complete_in_omnifocus': undefined local variable or method `issue' for main:Object (NameError)\r\n\tfrom /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:852:in `start'\r\n\tfrom /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:582:in `start'\r\n\tfrom ./jiraomnifocus.rb:211:in `block in mark_resolved_jira_tickets_as_complete_in_omnifocus'\r\n\tfrom ./jiraomnifocus.rb:201:in `each'\r\n\tfrom ./jiraomnifocus.rb:201:in `find'\r\n\tfrom ./jiraomnifocus.rb:201:in `each'\r\n\tfrom ./jiraomnifocus.rb:201:in `mark_resolved_jira_tickets_as_complete_in_omnifocus'\r\n\tfrom ./jiraomnifocus.rb:254:in `main'\r\n\tfrom ./jiraomnifocus.rb:258:in `<main>'\r\n`\r\nSo I changed line 206 of jiraomnifocus.rb to the following in an attempt to see what issue was causing the... issue. \r\n\r\n`# check status of the jira\r\n  uri = URI(JIRA_BASE_URL + '/rest/api/2/issue/' + jira_id)\r\n  puts jira_id`\r\n\r\nApparently it's trying to look at \"http://intranet/jira/secure/admin/SDMailInfo.jspa\""}}