{"action":"created","issue":{"url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/29","labels_url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/29/comments","events_url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/29/events","html_url":"https://github.com/coddingtonbear/jirafs/issues/29","id":97429813,"number":29,"title":"Cannot use non-standard URL","user":{"login":"jalanb","id":135829,"avatar_url":"https://avatars.githubusercontent.com/u/135829?v=3","gravatar_id":"","url":"https://api.github.com/users/jalanb","html_url":"https://github.com/jalanb","followers_url":"https://api.github.com/users/jalanb/followers","following_url":"https://api.github.com/users/jalanb/following{/other_user}","gists_url":"https://api.github.com/users/jalanb/gists{/gist_id}","starred_url":"https://api.github.com/users/jalanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalanb/subscriptions","organizations_url":"https://api.github.com/users/jalanb/orgs","repos_url":"https://api.github.com/users/jalanb/repos","events_url":"https://api.github.com/users/jalanb/events{/privacy}","received_events_url":"https://api.github.com/users/jalanb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"coddingtonbear","id":527661,"avatar_url":"https://avatars.githubusercontent.com/u/527661?v=3","gravatar_id":"","url":"https://api.github.com/users/coddingtonbear","html_url":"https://github.com/coddingtonbear","followers_url":"https://api.github.com/users/coddingtonbear/followers","following_url":"https://api.github.com/users/coddingtonbear/following{/other_user}","gists_url":"https://api.github.com/users/coddingtonbear/gists{/gist_id}","starred_url":"https://api.github.com/users/coddingtonbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coddingtonbear/subscriptions","organizations_url":"https://api.github.com/users/coddingtonbear/orgs","repos_url":"https://api.github.com/users/coddingtonbear/repos","events_url":"https://api.github.com/users/coddingtonbear/events{/privacy}","received_events_url":"https://api.github.com/users/coddingtonbear/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-07-27T10:09:21Z","updated_at":"2015-10-11T14:18:48Z","closed_at":"2015-10-11T07:43:07Z","body":"jirafs expects a URL like `http://my.jira.server/browse/...`. However our JIRA server is set up to use `http://my.jira.server/jira/browse/...` and jirfs barfs on that (below)\r\n\r\nI put in a quick fix, changing [line 213 of ticketfolder.py](https://github.com/coddingtonbear/jirafs/blob/development/jirafs/ticketfolder.py#L213) to \r\n```python\r\n        match = re.match('\\/.*\\/browse\\/(\\w+-\\d+)\\/?.*', parts.path)\r\n```\r\nHowever this was insufficient as later on the code does not know to use the `/jira` part in constructing URLs\r\n\r\nTraceback:\r\n\r\n```shell\r\n$ jirafs clone https://server.com/jira/browse/STUFF-999\r\nTraceback (most recent call last):\r\n  File \"/home/jalanb/bin/jirafs\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/cmdline.py\", line 86, in main\r\n    extra, jira=jira, path=os.getcwd(), command_name=command_name\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/plugin.py\", line 172, in execute_command\r\n    result = cmd.handle(**kwargs)\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/commands/clone.py\", line 37, in handle\r\n    return self.clone(path, ticket_url, jira)\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/commands/clone.py\", line 175, in clone\r\n    jira,\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/commands/clone.py\", line 44, in clone_from_issue\r\n    folder = TicketFolder.initialize_ticket_folder(ticket_url, path, jira)\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/ticketfolder.py\", line 443, in initialize_ticket_folder\r\n    (instance.ticket_number, instance.path, )\r\n  File \"/home/jalanb/lib/python2.7/site-packages/jirafs/ticketfolder.py\", line 216, in ticket_number\r\n    \"Could not infer ticket number from URL %s\" % self.issue_url\r\nValueError: Could not infer ticket number from URL https://server.com/jira/browse/STUFF-999\r\n```"},"comment":{"url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/comments/147201309","html_url":"https://github.com/coddingtonbear/jirafs/issues/29#issuecomment-147201309","issue_url":"https://api.github.com/repos/coddingtonbear/jirafs/issues/29","id":147201309,"user":{"login":"jalanb","id":135829,"avatar_url":"https://avatars.githubusercontent.com/u/135829?v=3","gravatar_id":"","url":"https://api.github.com/users/jalanb","html_url":"https://github.com/jalanb","followers_url":"https://api.github.com/users/jalanb/followers","following_url":"https://api.github.com/users/jalanb/following{/other_user}","gists_url":"https://api.github.com/users/jalanb/gists{/gist_id}","starred_url":"https://api.github.com/users/jalanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalanb/subscriptions","organizations_url":"https://api.github.com/users/jalanb/orgs","repos_url":"https://api.github.com/users/jalanb/repos","events_url":"https://api.github.com/users/jalanb/events{/privacy}","received_events_url":"https://api.github.com/users/jalanb/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T14:18:48Z","updated_at":"2015-10-11T14:18:48Z","body":"I've moved on, and no longer have access to Jira\r\n\r\nHowever, @jimlawton - you may wish to give jirafs another try now"}}