n0v1c3 / vira

Create and update your Jira issues while inside Vim!
MIT License
94 stars 13 forks source link

Error using VIRA on newer JIRA #82

Open jczaja opened 10 months ago

jczaja commented 10 months ago

Hi,

I have been a user of VIRA and it worked great however Command "ViraFilterProjects" stopped to work today (probably some update of JIRA I'm using). So here is error when calling ViraFilterProject:

image

VIRA version: c5ee0d31c8485cc48bb5df213af7a2cbc1d21d45

Please advice how to proceed

mikeboiko commented 10 months ago

Can you try running pip install -U jira to see if that fixes your issue?

jczaja commented 10 months ago

I have updated jira package (3.5.0 to 3.5.2) but still when executing :ViraFilterProjects I still got this error as mentioned in above post.

Other commands :ViraFilterText , :ViraIssues works fine.

mikeboiko commented 10 months ago

Yea, it looks like jira changed their API.

The following code from python/Vira/vira_api.py no longer works with your version:

            projects = self.jira.createmeta(
                projectKeys=','.join(batch), expand='projects')['projects']

I'm pretty busy these days, but I'll take a look when I have some time. In the meantime, you could try searching for a solution online and testing the changes in vira_api.py directly.