Forums

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

Newline in report description

Dani Asztalos January 18, 2024

I'm trying to add a new report for a commit with multiline description using https://developer.atlassian.com/cloud/bitbucket/rest/api-group-reports/#api-repositories-workspace-repo-slug-commit-commit-reports-reportid-put

Passing "line1\nline2\nline3" in the details parameter results in "line1 line2 line3", passing "line1\\nline2\\nline3" results in "line1\nline2\nline3".

What else should I do to achieve multiple lines in the description of the report?

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2024

Hi Dani and welcome to the community!

I'm afraid that it is not possible to add new lines in the details field of the reports API at the moment.

We have a bug report about this in our issue tracker:

You can add yourself as a watcher (by selecting the Start watching this issue link in the bug report) if you'd like to get notified via email of any updates. You can also select the link This affects my team to indicate you are affected by this issue.

Our development team will post an update on that bug report when this is fixed. Please note that we don't provide ETAs and bug fixing is implemented as per our policy here.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events