I have a request form with some insight fields on it. I am trying to set the value of the insight fields on the form (this is BEFORE the issue is created). The script looks like:
def countryField = getFieldById("customfield_16805")
def storedObjectBean = objectFacade.loadObjectBean(theCountryId)
countryField.setError(storedObjectBean.toString()) // this works -> Canada (TVM-256028)
//none of these work
//countryField.setFormValue(storedObjectBean)
//countryField.setFormValue([storedObjectBean])
//countryField.setFormValue(theCountryId)
//countryField.setFormValue([theCountryId])Since the issue is not yet created, there is no issue variable and I cannot use the mutableIssue.setCustomFieldValue() which usually works.
Any ideas?