Hi
I am trying to update comment body using JIRA rest API, everything works fine but text indent is not working.
*text* is making the text bold
\n is creating new line
but I want the next line to start 1 tab space from the previous line
For Ex:
This is my first line
Here my second line should Start
If I use \t that is printing the \t as it is instead of the tab space.
Thanks in advance.
I do not believe tab is supported in the markdown for the Jira text fields. You could try entering spaces for your indents, or investigating marketplace addons which can parse that markdown.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please show the entire body of your request?
I see no spaces or closing quotation mark in what you have posted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy ,
Thanks for your reply, I am adding the post data here for your reference
Endpoint:
"/rest/api/2/issue/Key-123",
data:
{
"fields":{
"customfield_xxxx":"Rejected with comments"
},
"update":{
"comment":[
{
"add":{
"body": "Please find the feebacks provided by Requestor in EnVision tool\n* Register content*\n testing"
}
}
]
}
}
In the above data, \n is printing the comment in the next line as expected but neither '\t' nor "SPACE" is working for the tab space
Expecting like:
Please find the feebacks provided by Requestor in EnVision tool
Register content
testing
Getting like:
Please find the feebacks provided by Requestor in EnVision tool
Register content
testing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears to be collapsing / trimming after the newline.
You may want to ping the Atlassian support team, or post this question in the Developer Community: https://community.developer.atlassian.com/
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.