Hi Team,
I want few fields required upon closing of ticket via scriptrunner or JSU, as this 2 add-ons we have.
So When some one click Close request and if Field A = ABC then it should check if field X & Y is not empty. Trying on various ways but couldnt succeed.
Trying Field Required Validator (Scriptrunner) but no luck, behavior will not fit as I need this on workflow transition. This is what I am using on behavior side but thats also not working.
Please help here for this one to make it work on workflow transition and what should I use.
Hi Rakesh,
Here is a documentation that explain how to do it with apps such as JSU or Scriptrunner... do not code for that, there are existing validator with JSU or Scriptrunner ;)
I hope this helps ;)
Cheers,
Dam.
Do all the fields exist in Close transition screen? If not, getFieldById("customfield_xxxxx") doesn't work in bhv.
Also, I couldn't see FieldX and FieldY definition in your code.
I suggest you use setHelpText() within the code to see variable values step by step.
As I see, you use same variable "FieldA" twice in the code. Change to:
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.