Hi
Could you please help me to keep a field available with other field's value?
Only when user set the Automation Status as Automated, Test Cases Reference will be shown below the Automation Status.
Thanks,
Anusha
Hi @Anusha Iyer
I guess you're using wrong syntax for custom field ID, it should be customfield_14781
def automationStatusField = getFieldById("customfield_XXXXX") //Automation Status field
def automationStatusFieldType = automationStatusField.getValue()
def testCaseReferenceField = getFieldById("customfield_14781") // TestCase Reference field
if(automationStatusFieldType == "Automated"){
testCaseReferenceField.setReadOnly(true);
}
else{
testCaseReferenceField.setReadOnly(false);
}
Please change customfield_XXXX to your Automaton Status cf ID.
Please try this code adding in behavior script and under Automation Status field.
Regards
Tej
I tried below script but nothing worked
def automationStatusField = getFieldById(getFieldChanged())
def testCaseReferenceField = getFieldById("customFieldId=14781")
String automationStatusVal = automationStatusField.getFormValue();
if(automationStatusVal.equals("Automated")){
testCaseReferenceField.setReadOnly(true);
} else {
testCaseReferenceField.setReadOnly(false);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.