Forums

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

Preserving text formats in Custom Fields

milynnus
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.
May 31, 2020

I noticed in working with custom fields in where \n is embedded in the text that these are kept unchanged. When retrieved and shared with another app the data is formatted correctly. 

However, if the card is open either on the desktop or I suspect also in ios or Android app that these formats no longer works.

Is there a workaround this ? or the would be a new feature request?

1 answer

1 accepted

0 votes
Answer accepted
Iain Dooley
Community Champion
June 2, 2020

@milynnus there aren't currently any "paragraph" custom field types capable of rendering line breaks

milynnus
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.
June 2, 2020

What I am sharing is that line breaks disappear only when you open (I think you have to go to that field) and save the card - otherwise the \n appears to work at this when presented on my client. 

Iain Dooley
Community Champion
June 2, 2020

@milynnus I think I see what you mean: you post data to a custom field via the API with line breaks, then retrieve via the API and it still has line breaks, but when you go to the card and view it, then retrieve via the API, the line breaks have been removed. No way round this I'm afraid. You could do something like use a semi-colon delimeter to indicate a line break then sub these in when you retrieve the value and pass it back to your client.

milynnus
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.
June 2, 2020

Yes, that had been my experience. Your suggestion is workable. Hence I will mark this Answer as “Accepted”

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events