Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new ticket works but crashes when formatting response for cli printing #85

Open
jonathankehler opened this issue Sep 26, 2020 · 3 comments

Comments

@jonathankehler
Copy link

#jira-cli new --type=FOO --project=BAR "Test ticket"
....
Traceback (most recent call last): File "/home/jonathan/.local/bin/jira-cli", line 8, in <module> sys.exit(cli()) File "/home/jonathan/.local/lib/python2.7/site-packages/jiracli/interface.py", line 272, in cli return post_args.cmd(jira, post_args).execute() File "/home/jonathan/.local/lib/python2.7/site-packages/jiracli/processor.py", line 30, in execute return self.eval() File "/home/jonathan/.local/lib/python2.7/site-packages/jiracli/processor.py", line 251, in eval self.args.issue_reporter, self.args.labels, components, **extras File "/home/jonathan/.local/lib/python2.7/site-packages/jiracli/bridge/__init__.py", line 45, in format_issue )["name"] TypeError: 'NoneType' object has no attribute '__getitem__'
I verified the tickets are getting created but its failing when trying to format the issue response.

@jonathankehler
Copy link
Author

~/.local/lib/python2.7/site-packages/jiracli/bridge/init.py - def format_issue,
JiraBridge.object_from_key returns None because the issue number (issue.setdefault('status','1') is not found in the list of statuses (self.get_statuses()).

I'm not sure why yet

@jonathankehler
Copy link
Author

Yeah its just a mismapping of status id codes. Not sure where is getting self.get_statuses().

@jonathankehler
Copy link
Author

Meh foxythemes is better sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant