I want my issue description in formatted way so passing multiline value in JIRA API request but it throws error as BAD Request. What is best way to handle this?
{
"fields": {
"project": { "key": "TES" },
"summary": "This is user story",
"description": "As a
I want
So that
Acceptance Criteria:
When
Invoke browser with url
And
Enter text ABC in field User ID.
And
Enter password 1234 in field Password
And
Click On Submit",
"issuetype": { "name": "Story" },
"priority":{ "name":"High" }
}
}
Have you tried to put in new-line \n characters, or other escaped formatting?
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Per this article, that should work:
Would you please post what you are trying with the newline included?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got solution. This packet was coming from different source and description value was having '\n" character but it was throwing Bad request but when I changed that value as "\\n" then it started working. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rajeev Ranjan , I believe you need to submit the description as an ADF (Atlassian Document Format) object, see https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/.
So for `description`, you'd need to submit something like
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.