Hello,
I'm doing an interaction between jira and A-ha. Sending improvement tickets from Jira to AHA. To do this, I created an automation rule when a ticket is an improvement then send the web request with this JSON:
{
"idea": {
"name": "{{issue.fields.summary}}",
"description": "{{issue.fields.description.replace("\n", "\\n")}}"
}
}
And it works for new lines or line breaks. But not for rich text edit. I mean, put bold or headings into the ticket description.
Hi Ricardo,
you need to make sure you are using correct format depending on REST API version.
For Jira REST API v3 -> you need to use ADF JSON format for description field, or any other ADF type field.
Another method you could try is to swithc REST API url version from 3 to 2, and then use the same JSON you've provided.
hope this helps.
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ricardo Cortes Romo , what URI are you using?
Let's say you are using URI for issue create in Jira:
POST https://<your site>/rest/api/3/issue
version 2 would be
POST https://<your site>/rest/api/2/issue
check Atlassian's official documentation for REST API v2.
Regards,
Ben
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.