The workflow I need to realize is to require a user to comment changing of issues`s state.
For example, user changes state of issue from "In progress" to "Fixed". And in this case Youtrack have to require a user to describe why he decided to fix issue at changing issue state moment in spite on is issue commented or not.
The way I found is to write:
issue.comments.required("Please, comment the reason to transit issue state");
And I got some problems of Youtrack behaviour:
1. If issue hasn`t any comments.
I change issue`s state and get command window with predetermined invalid command "comments". (screenshot attached)
2. If issue has some comments.
I change issue`s state and get nothing.
As I understand the good way for my task is next case:
Irrespective of has issue comments or not, to open command window with predetermined valid command 'comment'
How I can do it?
Workflow 4.2 (build #55.5851 [build on 13 Feb 2013])
YouTrack 4.1.3 (build #5764 [17-Jan-2013 15:55] )