We are using the "Create customer request" Jira Service Desk API (POST /rest/servicedeskapi/request) to create Jira Service Desk tickets.
How can we include a newline character (e.g. \n) within any of the textual parameters like "description"?
We've tried many variations of \n but nothing seems to work. The ticket just gets created with the plain text.
Note that we have disabled HTML in our Jira Service Desk for security reasons.
Hi @Daniel Pohl - Have you tried using markdown?
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \\ Habitant morbi tristique senectus et netus et malesuada. Feugiat nisl pretium fusce id velit ut tortor pretium. Sed euismod nisi porta lorem.
Yes, we tried \\ but it just renders the plain text with 2 backslashes.
Looks like Atlassian Community does the same thing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are limitations with the portal experience. Have you considered maybe going the route of creating an issue via the Jira API rather than a customer request via the JSM API? You may get a little more leeway on it.
Note - I believe there are issues with setting the Request Type field during the create issue call so you may have to create the issue and then set the Request Type as a second edit issue call immediately after the issue is created. I know it's clunky, but it may remove some of the constraints you'll face with the JSM API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, it looks like \\ does in fact create the newline through the ServiceDesk API. Looks like we were making a mistake in our post that was messing things up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, it looks like \\ does in fact create the newline through the ServiceDesk API. Looks like we were making a mistake in our post that was messing things up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.