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

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

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2021

Hi @Bill Grubbs ,

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

Thanks,

Avinash

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events