n0v1c3 / vira

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

Use transitions instead of statuses for setting status #68

Closed ghost closed 3 years ago

ghost commented 3 years ago

A Jira instance may not necessarily allow to assign a status directly to an issues. Instead, for each issue allowed transitions need to be obtained and used instead.

n0v1c3 commented 3 years ago

This is potentially some of final issues I am having with my crazy private DB side of the problems.

I see no issues with it. I will just put it in right away.

n0v1c3 commented 3 years ago

https://issues.apache.org/jira/browse/PNIX-9 is another one that is popping up as a test problem on my side.

I currently know about and track the issue on this line of code in the VIRA-253 brach. I am/have fixed the query for my tracking with the extra ? I had left behind. That was not related at all, that db is just to help track the issue.

for idx, comment in enumerate(issue['fields']['comment']['comments']):
            try:
                comments.append([project, issue_count, idx, str(comment['author']['displayName']), str(self.format_date(comment['updated'])), str(comment['body'])])
            except:
                self.cur.execute(
                    'INSERT INTO broken_issues(key,issueType,summary) VALUES(?,?,?,?)',
                    (str(key), str(issueType), str(summary), )
                )
                pass