Hello,
In my workflow I have a transition that allows a jira user to reject a solution.
This transition lead back from "done" to "in progress".
I want the user that rejects the solution to add a comment to explain the reason why the solution was rejected.
My question is: How can I have the user indicate the reason of the rejection when he click on "rejected" transition ?
Exemple: "Wrong value detected"
Hi @Mboiteux,
you need to put a screen in your workflow transition, you can do it follow the next guide: https://confluence.atlassian.com/jirakb/mapping-a-screen-to-a-workflow-transition-720634253.html
I hope this help,
Adrián.
This woks for me.
It seems that I finally don't need to add a new field since a comment field is added to the new screen when it pops up.
Thank you Adrian.
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mboiteux,
To make fields mandatory you need to use a validator in the cloud you make it by default validators, but in the server, you need an App, for example, you can use JSU.
This is one guide: https://confluence-apps.beecom.ch/display/JSU/Fields+Required+Validator
I hope this help,
Adrián.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
It depends on how you want a user to provide a reason for rejection. You can create an additional field or you can use the comment field. In any case as far as I understand you want to make this field (additional field or the comment field) required.
You would need an add-on for it.
For example, you could use the Power Scripts add-on:
You could create a validator for the rejected transition like this:
string errorMsg = "You must enter a comment!";
if(!hasInput("comment")) {
return false, "comment", errorMsg;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your answer Alexey,
The best for me would be to use e new comment on the task.
I hope I can do this without any add-on. We bought our licences in september and we add new add-ons every two weeks :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I finally managed without add-on.
I could not make the comment mandatory when the transition fires but I have a comment and (optionally) a new field "new status reason".
Do you think it is possible to make this without add-on ?
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.