Hi, i'm working with the Jira Service Desk API and want to get the full content of my knowledge center articles.
There is a way to expand and get the full content?
Or if not, reading the Article URL and innerHTML the content we receive a CORB - Cross-Origin Read Blocking for the images, there is also a way to whitelist our domain or workaround this situation?
Thanks in advance.
Marcelo.
Hello @marcelo ,
If I understand correctly you are calling one of the service desk REST API endpoints to get articles and you want to get the full article content instead of only an excerpt:
Is this correct?
If this is correct then I the example response in the documentation I can see that a URL with the full article content is already returned in the response itself, under the "content" property:
"values": [ { "title": "Stolen computer", "excerpt": "assuming your computer was stolen", "source": { "type": "confluence", "pageId": "8786177", "spaceKey": "IT" }, "content": { "iframeSrc": "https://your-domain.atlassian.net/rest/servicedeskapi/knowledgebase/article/view/8786177" }
For above example, in order to get the whole content it would be enough to call:
Another option would be to call the Confluence REST API endpoint to get content by ID (providing the pageId from above response).
For details please see:
Cheers,
Dario
Hi Dario, thanks for your message, and sorry take so long to reply.
What we want to achieve is to read the content and not just load the content URL that we receive back in an IFRAME.
For this specific case, we already have it working. But remains a problem with the images as we receive a CORB while reading the image's link.
About the CORB issue is because Atlassian needs to add a HEADER property to allow the third-party to read the images when not embedding the content via IFRAME.
https://stackoverflow.com/questions/50873764/cross-origin-read-blocking-corb
Not sure if Atlassian can add it or even if they want us to be able to read the images like we're doing now.
Thanks a lot in advance.
Best regards,
Marcelo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marcelo Carneiro ,
Embedding Jira or Confluence in an iFrame is indeed not supported:
I am not sure there is a way to workaround this but I believe you might have better chances to find a workaround for this issue if you either Ask the Developers Community or Create a Developer Support Request.
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That text in the article is somewhere. Can we get a new endpoint which just gets the content of the article?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.