Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add text to a multi line text field separated by new line

yaron
Contributor
June 8, 2022

On a automation rule, I want to add text to one of the custom fields (multi line text field) - add it in a new line in addition to the current text already stored in this field.

I already managed to append the new text to the old text (save it to variable and add it to the target field with the additional text), but I didn't find a way to add the next text in a new line.
In the example - the old and new texts are separated by ';' ,

 

Regards,

Yaron

 

 

3 answers

1 accepted

3 votes
Answer accepted
yaron
Contributor
June 8, 2022

Was very simple solution after all - add the new text in a new line right on the field update:

Untitled1.pngUntitled2.png

Beth July 13, 2022

This is fantastic. I just used this solution and it works like a charm. Thank you so much for posting this! <3 

Joel Batac
Contributor
January 15, 2023

Hi @yaron - can you let me know how you setup the automation. I'm new to jira automation and have no clue how to setup. I have the same requirement like yours

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2023

Hi @Joel Batac 

Please consider starting with this reference which provides an overview of automation rules, example rules, and details of the features.

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

Kind regards,
Bill

Joel Batac
Contributor
January 17, 2023

Thanks @Bill Sheboy - is this same as Data Center version?

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2023

No, as the specific features are a bit different for Jira Cloud and Server/Data Center automation.  And...Server/Data Center has a "lite" (free) and "pro" (paid) version.

Please look here for information on the Server/Data Center versions:

https://confluence.atlassian.com/automation/jira-automation-data-center-and-server-993924595.html

Josh Schoenick
Contributor
December 18, 2024

This works for textarea customfield, but does anyone know how to accomplish this same thing with the Edit Object field in Jira Service Management for a textarea attribute type?

I'm striking out. tried /r/n  /n/n   <br>  none work.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 18, 2024

Hi @Josh Schoenick 

This is a very old thread, and thus I recommend creating a new question, perhaps adding a link back to this one.  That will ensure the maximum number of people see it to offer suggestions.  Thanks!

When you post your question, please include images of your complete rule, the edit action, and the audit log details showing the rule execution...and explain what you are observing versus expecting the rule to do.

Kind regards,
Bill

Like Bill Sheboy likes this
0 votes
yaron
Contributor
June 8, 2022

 

Hi @Deepak Rai ,

Seems that my question wasn't clear enough, I updated it with more details.

 

Thank you anyway for that as well.

 

Regards,

Yaron

0 votes
Deepak Rai
Community Champion
June 8, 2022

Select the custom field name and enter the value. Use the '\n' (new line character) for a line break.

Capture.JPG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events