Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

API request not showing all results

soc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2020

Hi, I have JIRA Service Desk 4.6.0.

I am doing a get request using a Rest Api client and I am only getting 3 results back.

When I look in the dashboard there are 6 tickets in the queue I am not sure why all 6 are not showing with the get request. Attached is the image for the tickets in the queue and the request and response.

Screen Shot 2020-02-08 at 12.45.49 PM.png

Request:

http://***:*****@3.*.*.*:8080/rest/servicedeskapi/request?serviceDeskId=1

 

Response:

{
"_expands": [
"participant",
"status",
"sla",
"requestType",
"serviceDesk"
],
"size": 3,
"start": 0,
"limit": 50,
"isLastPage": true,
"_links": {
"base": "http://3.*.*.*:8080",
"context": "",
"self": "http://3.*.*.*:8080/rest/servicedeskapi/request?serviceDeskId=1"
},
"values": [
{
"_expands": [
"participant",
"status",
"sla",
"requestType",
"serviceDesk"
],
"issueId": "10000",
"issueKey": "SOC-1",
"requestTypeId": "1",
"serviceDeskId": "1",
"createdDate": {
"iso8601": "2020-01-06T17:38:00+0000",
"jira": "2020-01-06T17:38:00.000+0000",
"friendly": "06/Jan/20 5:38 PM",
"epochMillis": 1578332280000
},
"reporter": {
"name": "SOC",
"key": "JIRAUSER10000",
"emailAddress": "soc@s*******.com",
"displayName": "soc@s********.com",
"active": true,
"timeZone": "GMT",
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/user?username=*********",
"avatarUrls": {
"48x48": "http://3.*.*.*:8080/secure/useravatar?ownerId=JIRAUSER10000&avatarId=10602",
"24x24": "http://3.*.*.*:8080/secure/useravatar?size=small&ownerId=JIRAUSER10000&avatarId=10602",
"16x16": "http://3.*.*.*:8080/secure/useravatar?size=xsmall&ownerId=JIRAUSER10000&avatarId=10602",
"32x32": "http://3.*.*.*:8080/secure/useravatar?size=medium&ownerId=JIRAUSER10000&avatarId=10602"
},
"self": "http://3.*.*.*:8080/rest/api/2/user?username=*********"
}
},
"requestFieldValues": [],
"currentStatus": {
"status": "Completed",
"statusDate": {
"iso8601": "2020-01-07T16:43:32+0000",
"jira": "2020-01-07T16:43:32.369+0000",
"friendly": "07/Jan/20 4:43 PM",
"epochMillis": 1578415412369
}
},
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/issue/10000",
"web": "http://3.*.*.*:8080/servicedesk/customer/portal/1/SOC-1",
"self": "http://3.*.*.*:8080/rest/servicedeskapi/request/10000"
}
},
{
"_expands": [
"participant",
"status",
"sla",
"requestType",
"serviceDesk"
],
"issueId": "10002",
"issueKey": "SOC-3",
"requestTypeId": "14",
"serviceDeskId": "1",
"createdDate": {
"iso8601": "2020-01-06T21:01:59+0000",
"jira": "2020-01-06T21:01:59.000+0000",
"friendly": "06/Jan/20 9:01 PM",
"epochMillis": 1578344519000
},
"reporter": {
"name": "SOC",
"key": "JIRAUSER10000",
"emailAddress": "soc@*******.com",
"displayName": "soc@********.com",
"active": true,
"timeZone": "GMT",
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/user?username=*********",
"avatarUrls": {
"48x48": "http://3.*.*.*:8080/secure/useravatar?ownerId=JIRAUSER10000&avatarId=10602",
"24x24": "http://3.*.*.*:8080/secure/useravatar?size=small&ownerId=JIRAUSER10000&avatarId=10602",
"16x16": "http://3.*.*.*:8080/secure/useravatar?size=xsmall&ownerId=JIRAUSER10000&avatarId=10602",
"32x32": "http://3.*.*.*:8080/secure/useravatar?size=medium&ownerId=JIRAUSER10000&avatarId=10602"
},
"self": "http://3.*.*.*:8080/rest/api/2/user?username=*********"
}
},
"requestFieldValues": [],
"currentStatus": {
"status": "Pending",
"statusDate": {
"iso8601": "2020-01-07T16:39:05+0000",
"jira": "2020-01-07T16:39:05.096+0000",
"friendly": "07/Jan/20 4:39 PM",
"epochMillis": 1578415145096
}
},
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/issue/10002",
"web": "http://3.*.*.*:8080/servicedesk/customer/portal/1/SOC-3",
"self": "http://3.*.*.*:8080/rest/servicedeskapi/request/10002"
}
},
{
"_expands": [
"participant",
"status",
"sla",
"requestType",
"serviceDesk"
],
"issueId": "10001",
"issueKey": "SOC-2",
"requestTypeId": "14",
"serviceDeskId": "1",
"createdDate": {
"iso8601": "2020-01-06T20:02:29+0000",
"jira": "2020-01-06T20:02:29.000+0000",
"friendly": "06/Jan/20 8:02 PM",
"epochMillis": 1578340949000
},
"reporter": {
"name": "SOC",
"key": "JIRAUSER10000",
"emailAddress": "soc@s*******.com",
"displayName": "soc@s********.com",
"active": true,
"timeZone": "GMT",
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/user?username=*********",
"avatarUrls": {
"48x48": "http://3.*.*.*:8080/secure/useravatar?ownerId=JIRAUSER10000&avatarId=10602",
"24x24": "http://3.*.*.*:8080/secure/useravatar?size=small&ownerId=JIRAUSER10000&avatarId=10602",
"16x16": "http://3.*.*.*:8080/secure/useravatar?size=xsmall&ownerId=JIRAUSER10000&avatarId=10602",
"32x32": "http://3.*.*.*:8080/secure/useravatar?size=medium&ownerId=JIRAUSER10000&avatarId=10602"
},
"self": "http://3.*.*.*:8080/rest/api/2/user?username=*********"
}
},
"requestFieldValues": [],
"currentStatus": {
"status": "Open",
"statusDate": {
"iso8601": "2020-01-06T23:30:29+0000",
"jira": "2020-01-06T23:30:29.843+0000",
"friendly": "06/Jan/20 11:30 PM",
"epochMillis": 1578353429843
}
},
"_links": {
"jiraRest": "http://3.*.*.*:8080/rest/api/2/issue/10001",
"web": "http://3.*.*.*:8080/servicedesk/customer/portal/1/SOC-2",
"self": "http://3.*.*.*:8080/rest/servicedeskapi/request/10001"
}
}
],

 

1 answer

0 votes
soc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 11, 2020

Good morning Service desk community any help would be appreciated. 

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events