Transition issued with comment #472
-
Right now I can't use the command move to transition issues in my project. It's enforced for us to add a comment when we move an issue to certain statuses (for instance, Done) so I get this:
Adding a flag to the move command to add a comment as part of the transition action would help us. Something like:
Thanks for such a great tool, by the way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This would require moving and updating issue at the same time since "required field" can be anything. The JIra API supports this operation but its a bit of a mess to make it work correctly. You can do something like below for now. It's not ideal but should work. jira issue edit ISS-5516 --custom=comment="My comment" --no-input && jira issue move ISS-5516 "Done" |
Beta Was this translation helpful? Give feedback.
-
Jira API allows to pass $ jira issue move ISS-1 Done --comment "Example comment"
$ jira issue move ISS-1 Done -R Fixed Note that these fields needs to be available in the Workflow to work, else they will be ignored. See: https://confluence.atlassian.com/jirakb/how-to-add-a-comment-during-a-transition-779160682.html |
Beta Was this translation helpful? Give feedback.
Jira API allows to pass
resolution
,comment
andassignee
field in the endpoint. So, the new release v1.2.0 includes a change to allow you to set these fields when moving the issue.$ jira issue move ISS-1 Done --comment "Example comment" $ jira issue move ISS-1 Done -R Fixed
Note that these fields needs to be available in the Workflow to work, else they will be ignored.
See: https://confluence.atlassian.com/jirakb/how-to-add-a-comment-during-a-transition-779160682.html