Forums

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

Sending web request from Jira To A-HA description field with rich text fails

Ricardo Cortes Romo May 13, 2025

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. 

1 answer

0 votes
Benjamin Črnjak May 20, 2025

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 to 2, and then use the same JSON you've provided.

hope this helps.

Benjamin

Ricardo Cortes Romo May 29, 2025

Hi @Benjamin Črnjak ,

Thank you for the answer. 

How can I switch API versions?

Benjamin Črnjak June 1, 2025

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

Suggest an answer

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

Atlassian Community Events