Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the value in the 'Secure Password (multi-line)' custom field of an issue?

Seonghwa Hong April 12, 2022

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?

1 answer

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events