I have setted up a behaviour to make a field required based on another field like this:
@BaseScript FieldBehaviours fieldBehaviours
def testableField = getFieldById(fieldChanged)
def testRemarksField = getFieldByName("test remarks")
testRemarksField.setRequired(testableField.getValue() == 'no')
If I edit a task with the testableField to no, I see that the field is required:
And the field is also marked as required:
But if I validate the form again, it won't ask again this field even if it's still empty. How is it possible?
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