Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Automation rule encountered newline and failed

Is there a way to copy a field (i.e. the Summary) during a rule to create a new issue WITHOUT encountering this error:


The summary is invalid because it contains newline characters. (summary)

2 answers

1 accepted

0 votes
Answer accepted
John M Funk Community Leader Apr 06, 2021

Hi Paula,

Yes, you should be able to do that. What exactly are you trying to do? Or can you share the rule that you have so far? 

The rule creates a related issue and sets the summary and description by copying from the parent issue and, for the summary, appends:

{{issue.summary}} Access [Security KnowBe4+Git+AWS] 

I need to strip the newline from the Summary before it is copied to avoid the error.

Hi @Paula Manildi 

I wonder how the newline got on your summary.  Doing this should remove it:


Best regards,


I will try this [what if the last character ISN'T a newline - will a trim work just to remove unseen character or space but not a real character?] Thanks!

Like John M Funk likes this
John M Funk Community Leader Apr 06, 2021

Also, are you wanting to copy the Summary over from the initial ticket? If so, then it would look like:

{{triggerissue.summary}} Access [Security KnowBe4+Git+AWS]

Copy Description from Current issue seems to be working fine.

Like # people like this

Configuration change is working - since I am not going to try to put a newline in an issue I just have to monitor. The original issue probably came from a cut and paste.

Like John M Funk likes this

I have a solution for this: use {{issue.summary.replaceAll("\n", "")}} to remove all newline characters ("\n") instead of {{issue.summary}}.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,514 views 37 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you