In our case CascadingField is an cascading custom field that includes Option A and Option B, this Options has several Values. So we need CustomFieldRequired to be required, when CascadingField = OptionA.ValueB, while performing Close transition.
However we do not need this Close tranistion to be hidden. Therefore I didn't added the condition.
I have tried the simple script by adding cfValues['CascadingField '] == 'OptionA.ValueB' as a validation to the Close transition and additionally I have added "Field Required" Validator for CustomFieldRequired. But it doesn't work.
When I'm performing "Close" transition the CustomFieldRequired is required as CascadingField is set up to OptionA.ValueB, but when the CustomFieldA is filled, it still askes me to fill it in. Why ? How can I fix it ?
I also tried following script
(cfValues['CascadingField']?.get(null) == 'OptionA' && cfValues['CustomFieldRequired'] != "") and it doesn't works. I don't want to use Behaviour Plugin or addittional plugin as I'm sure that it can be done with Scrip Runner functions.
THanks in advance!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG