How to add a line break in a custom field
This article explains how to add line breaks in a custom field in the Create on Transition app.
Instructions
Perform the following:
- Login as a Jira Administrator and click > Issues.
- If a custom field already exists, skip to step 10. If not, click Add custom field in the top-right corner.
- Select Field Type as Text Field (multi-line), and click Next.
- Enter Name and Description (optional) in the respective fields, and click Create.
- The Screens section is shown. Select the required workflow screen(s), and click Update.
- In the Workflows tab, click the Edit link to the required workflow.
- Select the transition for which you want to add or edit post function. Select the Post Functions option.
- Click Add post function.
- Navigate to the Custom Fields option and click Add Custom Fields.
- Select the custom field name and enter the value. Use the '\n' (new line character) for a line break.
- Click Add to add the post function.
- Publish the workflow.
- Run the transition to see the values of the custom field.
Before adding the escape character:
After applying line break:
It is recommended to test this function in a non-production environment before deploying it.