Hi all,
I'm accessing Jira Service Desk in my company via REST API for the sake of company-wide reporting. I.e. one of my tasks would be to get data on all tickets in the service desk.
Before that I was accessing Jira Platform via API and had no trouble.
Jira Service Desk, however, sits in another instance. My user is in a Read-Only group with permission to access Jira Service Desk projects. There is one service desk project in that instance and the only query I am able to execute successfully is this:
rest/servicedeskapi/servicedesk
i.e. list the project.
Problem 1.
When I query ANY other Jira Service Desk API endpoint, e.g. as simple as
GET /rest/servicedeskapi/servicedesk/{serviceDeskId} or
GET /rest/servicedeskapi/request
etc.
...I get a 404 error
Problem 2.
I read other questions from this community and realised that even if I got a proper response from the Jira Service Desk API, I wouldn't be able to list all requests. There is no endpoint that would do that (/rest/servicedeskapi/request returns - in theory - just the user's tickets which is pointless for me).
It seems that to get all tickets I need to use the "normal" Jira Platform API instead.
But ANY query I run on the Jira Platform API returns text/html;charset=UTF-8 Content Type which is a complete wonder to me.
E.g. on
GET /rest/api/2/search?jql=project=PROJECTKEY
I get (and it's just the beginning):
<!doctype html>
<html lang="en" class="aui-responsive">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<title>Service Desk</title>
<meta name="viewport" content="initial-scale=1">
<meta name="ajs-context-path" content="">
<meta name="ajs-sdPluginVersion" content="4.5.1">
<meta name="ajs-kb-article-viewed" content="false">
<script>
window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};window.WRM._unparsedErrors=window.WRM._unparsedErrors||{};
...etc.
Can anyone please help me to figure out what is going on and how I can fix any of this?
Thanks!