These are chat archives for coddingtonbear/jirafs

27th
Jul 2015
J Alan Brogan
@jalanb
Jul 27 2015 09:14
Cannot clone tickets, seemingly because our URL is not one you expect, we use http://my.jira.server/jira/browse instead of http://my.jira.server/browse/...
$ jirafs clone https://rdkwiki.com/jira/browse/CMF-652
Traceback (most recent call last):
  File "/home/alanb/bin/jirafs", line 11, in <module>
    sys.exit(main())
  File "/home/alanb/lib/python2.7/site-packages/jirafs/cmdline.py", line 86, in main
    extra, jira=jira, path=os.getcwd(), command_name=command_name
  File "/home/alanb/lib/python2.7/site-packages/jirafs/plugin.py", line 172, in execute_command
    result = cmd.handle(**kwargs)
  File "/home/alanb/lib/python2.7/site-packages/jirafs/commands/clone.py", line 37, in handle
    return self.clone(path, ticket_url, jira)
  File "/home/alanb/lib/python2.7/site-packages/jirafs/commands/clone.py", line 175, in clone
    jira,
  File "/home/alanb/lib/python2.7/site-packages/jirafs/commands/clone.py", line 44, in clone_from_issue
    folder = TicketFolder.initialize_ticket_folder(ticket_url, path, jira)
  File "/home/alanb/lib/python2.7/site-packages/jirafs/ticketfolder.py", line 443, in initialize_ticket_folder
    (instance.ticket_number, instance.path, )
  File "/home/alanb/lib/python2.7/site-packages/jirafs/ticketfolder.py", line 216, in ticket_number
    "Could not infer ticket number from URL %s" % self.issue_url
ValueError: Could not infer ticket number from URL https://rdkwiki.com/jira/browse/CMF-652
J Alan Brogan
@jalanb
Jul 27 2015 10:05
Tried to adapt the code, but the assumption that the URLs' prefix is just "server" seems too deeply embedded.
I shall create a GitHub issue