Forums

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

JIRA Markdown format not working with JIRA v3 REST API

Sai Avinash Duddupudi September 16, 2021

REST API URL -  https://company.atlassian.net/rest/api/3/issue

 

payload = {
'fields': {
'summary': 'something...',
'issuetype': {
'id': '1'
},
'description': {
'type': 'doc',
'version': 1,
'content': [{
'type': 'paragraph',
'content': [{
'text': '*testing*', // BOLD FORMAT NOT WORKING <----------
'type': 'text'
}]
}]
},
'project': {
'id': '342'
},
'reporter': {
'id': '00be30d9f5e00c32d8b89a62'
},
'assignee': {
'id': '00be30d9f5e00c32d8b89a62'
},
'labels': ['']
}
}


When I raised the issue via JIRA rest API v3 version with *testing* as my description, the same is being reflected in the jira board without converting to markdown format as show in the below image

image (2).png

Please suggest workaround how i can show markdown format using the rest api.
Thanks

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2021

Hi @Sai Avinash Duddupudi 

To be honest, I have not done this type of formatting with the REST API...and...

I recall another question about formatting text from REST API calls, and it noted using the Atlassian Document Format (ADF) to solve this: https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/

Of note also, there is an open defect that if you have ADF errors with a REST API call, it only provides a generic rather than a specific error message: https://jira.atlassian.com/browse/JRACLOUD-75909

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer