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.
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 ;)
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:
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events