Setting custom field with a next line character is not working when using 'runFromCsv' action

Problem Statement

When trying to set a value to an issue using runFromCsv CLI command, it does not accept the next line character (carriage return).

Command 

--action runFromCsv --common "--action setFieldValue --field customfield_name" --file TestCSV.csv

CSV file format without link break

IssueValues
Issuekey"items: - text: This is a test page checked: false _issueId: 10263"

Result

items:

Environment

ApplicationJira
VersionServer
App Version9.0.0

Cause

When we try to run the runFromCsv action with a multiline text field, the value in the custom field shows up in a single line, instead of moving to the next line.

Solution

It is recommended to use the command as:

  1. Create a CSV file with a line break (\n) as shown:

    Issuevalues
    Issuekeyitems: \n - text: This is a test (if required) \n checked: false \n _issueId: 10263
  2. Run the runFromCsv action as shown:

     --action runFromCsv --field "<name of the custom field>" --file "<path of the csv file>/TESTCSV.csv" --common "--action setFieldValue --field customfield_12562" 

Modify the custom field ID and issue ID as per the instance.