The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Line breaks in description using Alert API

Bill Grubbs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2021

Is it possible to add line breaks to the description field using the Alert API?  I've tried using /n and </br> but those don't seem to work.

Thanks,
Bill

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2021

Hi @Bill Grubbs ,

Just completed a few tests via Postman, and was able to get this format working to account for line breaks:

apicomm1.jpg

apicomm2.jpg
"description": "Format for line\n\nbreaks\n\nRelated to Community Post: https://community.atlassian.com/t5/Opsgenie-questions/Line-breaks-in-description-using-Alert-API/qaq-p/1874638?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_question&utm_content=topic"

 

Hope that helps! Let me know if you have any other questions.

0 votes
Avinash Bhagawati _Appfire_
Community Champion
November 30, 2021

Hi @Bill Grubbs ,

Can you just check with <br> for line breaks instead of </br>

Thanks,

Avinash

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events