Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,556,802
Community Members
 
Community Events
184
Community Groups

Newline Characters in Table not handled correctly

I am trying to create a table with one line, as it is to be imported via API to the comments of a test case.

 

Per documentation, it mentions using \\ as a newline character, but the issue is as follows:

||Header||\\|Cell1,1| gives this after render: 

Header

 

Cell1,1

So instead of formatting the line break as a newline, it is formatted as a cell containing a line break within. 

Can someone help me? The output I am hoping to achieve is 

 

Header

Cell 1,1

But it must be inputted as a one-line statement since it has to be in JSON format prior to the import - 

In other words, 

||Header||

|Cell1,1|

Can not be used. Any help would be appreciated, thank you

1 answer

0 votes
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 07, 2022

Hi @Scott Bauer -- welcome the community,

there was a similar question like this some time a go. As far as I remember the solution was to use 

\n 

instead off

\\ 

as newLine character in your payload.

 

As far as I understood it correctly and my little API skills are sufficient I tried to update a description field of a bug in my system via API and the line break worked.

Hope this was helpful.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events