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

Make issue create errors verbose to ensure description is not lost #776

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jhackettns1
Copy link

Most users spend a lot more time editing their description than anything else. This change ensures that if creating an issue fails for any reason, it is not lost to /dev/null forever.

15:16:13 ~/projects/jira-cli (main*)$ jira issue create
? Issue type Card
? Summary Testing JiraCLI
? Description <Received>
? What's next? Add metadata
? What would you like to add? Priority
? Priority 1
? What's next? Submit
⠹ Creating an issue...
Creation failed. Text dump follows.
Summary:
--------
Testing JiraCLI

Body:
-----
This is a test description which I can view from the output of a failed create command


Error:
  - priority: Specify the Priority (name) in the string format

jira: Received unexpected response '400 Bad Request'.
Please check the parameters you supplied and try again.
15:16:50 ~/projects/jira-cli (main*)$

@jhackettns1
Copy link
Author

This patch came from this discussion: #490

@jhackettns1 jhackettns1 changed the title Make issue create errors more verbose to ensure description is not lost Make issue create errors verbose to ensure description is not lost Sep 17, 2024
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

Successfully merging this pull request may close these issues.

1 participant