Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I am new to Jira API, I am facing an issue when I get data from Jira GET API it returns me a description in JSON form data How can I convert it into working HTML,
Same as when I post some HTML how to convert that HTML into working JSON for JIRA,
here is the response
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "this is "
},
{
"type": "text",
"text": "Bold ",
"marks": [
{
"type": "strong"
}
]
},
{
"type": "text",
"text": "and "
},
{
"type": "text",
"text": "italic",
"marks": [
{
"type": "em"
}
]
},
{
"type": "text",
"text": " Text to check how "
},
{
"type": "text",
"text": "website ",
"marks": [
{
"type": "textColor",
"attrs": {
"color": "#36b37e"
}
}
]
}
]
},
@Abdul Qadir The JIRA API is a rest endpoint that post and post-back responses use JSON. To convert them to or from HTML you will need to write something in your application to do that.
@Brant Schroeder thank you so much for the information. Is there any prebuild library or something that will help me convert this? I have little experience in PHP.
thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Abdul Qadir I am not familiar with a specific library in PHP that you could use. It should not be hard to create your own parser since the JSON objects should be the same so you could reuse your own function.
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.