Internal
Create a new instance of the service.
Returns articles which match the given query string across all service desks.
Permissions required: Permission to access the customer portal.
Optional
cursor?: stringPointer to a set of search results, returned as part of the next or prev URL from the previous search call.
If set to true matching query term in the title and excerpt will be highlighted
using the @@@hl@@@term@@@endhl@@@
syntax. Default: false.
Optional
limit?: numberThe maximum number of items to return per page. Default: 50.
Optional
prev?: booleanShould navigate to the previous page. Defaulted to false. Set to true as part of prev URL from the previous search call.
The string used to filter the articles (required).
Optional
start?: number(Deprecated) The starting index of the returned objects. Base index: 0.
Returns the articles, on the specified page of the results.
example:
{
"_expands": [],
"size": 2,
"start": 2,
"limit": 2,
"isLastPage": false,
"_links": {
"base": "https://your-domain.atlassian.net/rest/servicedeskapi",
"context": "context",
"next": "https://your-domain.atlassian.net/rest/servicedeskapi/knowledgebase/article?start=4&limit=2",
"prev": "https://your-domain.atlassian.net/rest/servicedeskapi/knowledgebase/article?start=0&limit=2"
},
"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"
}
},
{
"title": "Upgrading computer",
"excerpt": "each computer older then 3 years can be upgraded",
"source": {
"type": "confluence",
"pageId": "8785228",
"spaceKey": "IT"
},
"content": {
"iframeSrc": "https://your-domain.atlassian.net/rest/servicedeskapi/knowledgebase/article/view/8785228"
}
}
]
}
Protected
Static
initialize
See
https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-knowledgebase