Hi there,
I'm going to use the ScriptRunner to create an issue and set the data in the custom fields. I tried to set the value to custom field 'Secure Password (multi-line)' using the script below, but it failed.
MutableIssue target = ComponentAccessor.issueFactory.issue
target.setCustomFieldValue(foreignerField, foreigner) // general custom field: successful set the value
target.setCustomFieldValue(prevSalaryField, row.prev_salary.toString()) // Secure password (multi-line) field: failed to set the value
issueManager.createIssue(createUser, target)
I know that 'Secure Password (multi-line)' field encrypts the value. 'Secure Password (multi-line)' came from a third-party app, so they might be expecting a different data type rather than just a String.
So how do I set the value using a script?