Skip to content

JIRA Backend Doesn't support JIRA API located at /projects/ instead of /browse/ #163

Description

@abramhindle

Use Bicho HEAD c383992

File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 941, in run
project = self.url.split("/browse/")[1]

bicho \
>     --db-database-out=clover \
>     --db-user-out XXXX \
>     --db-password-out XXXX  \
>     -d 3 -b jira \
>     -u "https://jira.atlassian.com/projects/CLOV"
Checking URL: https://jira.atlassian.com
No account provided.
Running Bicho with delay of 3 seconds
No account data provided. Not logged in Jira
Traceback (most recent call last):
  File "/usr/local/bin/bicho", line 25, in <module>
    retval = bicho.main.main()
  File "/usr/local/lib/python2.7/dist-packages/bicho/main.py", line 56, in main
    backend.run()
  File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 941, in run
    project = self.url.split("/browse/")[1]
IndexError: list index out of range

Where as the following works just fine.

bicho \
>     --db-database-out=clover \
>     --db-user-out XXXX \
>     --db-password-out XXXX  \
>     -d 3 -b jira \
>     -u "https://jira.atlassian.com/browse/CLOV"
Checking URL: https://jira.atlassian.com
No account provided.
Running Bicho with delay of 3 seconds
No account data provided. Not logged in Jira
Tickets to be retrieved: 1495

But the REAL URI is https://jira.atlassian.com/projects/CLOV not https://jira.atlassian.com/browse/CLOV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions