How to add multiple field values in 1 remote text field

Originally asked by Harold Oconitrillo on 09 November 2023 (original question)


I would like to configure the following:

The source project has 2 custom fields (Field1 is a multi select list and Field2 a single select list)

-Field1 - Value A, Value B

-Field2 - Value C

I would like to add the 2 field values in a multi line text field called “External Info”. The content of the multi line text field (External Info) should be:

Field1: Value A, Value B

Field2: Value C


Comments:

Javier Pozuelo commented on 09 November 2023

Hello,

Between which instances are you doing the synchronization? I assume you don’t want it to be a bidirectional sync and only be done from Source project to external project, correct?

Stéphane Thillay commented on 10 November 2023

Hi,

Knowing which platform you’re working with would help.

In the one I know, Salesforce, multi-select picklist are stored as semi-colon delimited text, so it is already a plain text that could be directly stored in the target text field.

Regards,

Stéphane

Answer by Ron Becker on 10 November 2023

The question was for Jira server to Jira cloud.

Is solved the issue already. Thanks for helping me out.

def detectedinrelease = replica.“Detected in Release”*.name.join(“;”)

issue.customFields.“External Info”.value = “”"\

Detected in release = ${detectedinrelease}

“”"