/
Setting custom field with a next line character is not working when using 'runFromCsv' action
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
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:
Issue values Issuekey items: \n - text: This is a test (if required) \n checked: false \n _issueId: 10263 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.
Related content
How to create issue or update status using runFromCsv
How to create issue or update status using runFromCsv
More like this
How to use runFromCsv (JCLI)
How to use runFromCsv (JCLI)
More like this
How to add a line break in a custom field
How to add a line break in a custom field
More like this
Set field value for issues in bulk using Jira Command Line Interface (CLI) in Jira
Set field value for issues in bulk using Jira Command Line Interface (CLI) in Jira
More like this
How to add values to 5 custom fields to issues in bulk using Jira Command Line Interface (CLI)
How to add values to 5 custom fields to issues in bulk using Jira Command Line Interface (CLI)
More like this
How to create issues in bulk from a CSV file using Jira Command Line Interface (CLI)
How to create issues in bulk from a CSV file using Jira Command Line Interface (CLI)
More like this