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
Please suggest workaround how i can show markdown format using the rest api.
Thanks
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.