Hello everyone,
I’ve been tasked with creating a utility for my company that will utilize the Jira Service Desk API to pull all ticket information on a daily basis that we can then process in our own proprietary software for analysis. However, I’m having some trouble getting all fields for a ticket in the response from the API.
Here’s the response I’m getting currently.
(Note: I’ve altered URLs and other potentially sensitive information in this response.)
{
"_expands": [
"participant",
"status",
"sla",
"requestType",
"serviceDesk"
],
"issueId": "30441",
"issueKey": "JSD-1227",
"requestTypeId": "11",
"serviceDeskId": "2",
"createdDate": {
"iso8601": "2017-01-10T14:29:59-0500",
"jira": "2017-01-10T14:29:59.087-0500",
"friendly": "10/Jan/17 2:29 PM",
"epochMillis": 1484076599087
},
"reporter": null,
"requestFieldValues": [
{
"fieldId": "summary",
"label": "Summary",
"value": "Test summary"
},
{
"fieldId": "customfield_11500",
"label": "",
"value": []
}
],
"currentStatus": {
"status": "Close",
"statusDate": {
"iso8601": "2017-01-10T14:29:59-0500",
"jira": "2017-01-10T14:29:59.087-0500",
"friendly": "10/Jan/17 2:29 PM",
"epochMillis": 1484076599087
}
},
"_links": {
"jiraRest": ".../rest/api/2/issue/30441",
"web": ".../servicedesk/customer/portal/2/JSD-1227",
"self": ".../rest/servicedeskapi/request/30441"
}
}
When looking at the “requestFieldValues” array in this object, you can see that I’m only getting values for the ticket summary and one of our custom fields. I’ve looked at permissions and settings for these fields and compared to other fields that aren’t coming through and I can’t seem to find anything that works to get other fields to be included in the responses. Has anyone else out there been able to find a way to get every field for a ticket via the API?