go-jira / jira

simple jira command line client in Go
Apache License 2.0
2.68k stars 328 forks source link

Can't transition and add comment at the same time #444

Open cmcgee1024 opened 3 years ago

cmcgee1024 commented 3 years ago

I'm working with a JIRA project that requires comments to be left on issues when transitioning to certain states. The transition command offers a "-m | --comment=MESSAGE" parameter but that doesn't seem to go into the edit state of the issue.

% jira transition --noedit --comment='My comment here' 'Complete Verification' SOME-12345
ERROR comment: Comment is required.
? Jira reported an error, edit again? No

If I run this command again without --noedit I don't see the comment in the YAML for submission.