I want to force a person to comment when a custom fied is set to a particular value. I thought I did it years ago but we had Suite Utilities for JIRA (JSU) at the time. When I came to the current place we did not have it because they started charging. I installed an old version just to see if it was there and I do not see it as an option. I really thought there had been a simple way to do it on the fly previously. It did not stick out as something difficult. I had started to do some scripting and seems the 2nd Adaptivist tutorial says you have to get JSU to do it so I figured I am back in the same boat. If anyone has a simple way to force this on transition. I believe there might be multiple ways to accomplish but just wanting to see if anyone has anything?
Hello,
You could also use Power Scripts add-on. Power Scripts has Live Fields which are similair to behaviours in ScriptRunner. You can read more here:
https://confluence.cprime.io/display/JJUPIN/Live+Fields
Or you could also write a validator using Power Scripts. You can find more info here:
https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forvalidator:
If you need help on writing such a script, kindly ask.
If you have ScriptRunner you could setup a Behaviour that change the comment field to required if the custom field has a value. I do something similar with two custom fields, if one is filled in then the other becomes required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This Behaviours example should help: https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html#_using_a_server_side_validator_to_set_the_fix_versions_required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another option is to use a scripted validator, here is an example, https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/validators/simple-scripted-validators.html#_requiring_a_comment_when_assignee_changed
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.