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.csvCSV file format without link break
Issue | Values |
|---|---|
Issuekey | "items: - text: This is a test page checked: false _issueId: 10263" |
Result
items:Environment
Application | Jira |
|---|---|
Version | Server |
App Version | 9.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:
Create a CSV file with a line break (\n) as shown:
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.