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?
I would recommend you look in the third-party app documentation to see how they expect the data to be submitted.
Or at least link to the marketplace entry in your question so we can help you find out the necessary documentation exists.
Finally, you might be able to contact the third-party support line for some details.
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.