C++ Jira - Issues: Get an Issue

Back to Index

Returns a full representation of the issue for the given issue key or ID. This example returns the JSON for the issue with key = "SCRUM-15".

Documentation: https://developers.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-get

CURL Command

curl --user jira@example.com:JIRA_API_TOKEN \
  --header 'Accept: application/json' \
  --url 'https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15'

C++ Example

#include <CkRest.h>
#include <CkStringBuilder.h>
#include <CkJsonObject.h>

void ChilkatSample(void)
    {
    CkRest rest;
    bool success;

    //  URL: https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15
    bool bTls = true;
    int port = 443;
    bool bAutoReconnect = true;
    success = rest.Connect("your-domain.atlassian.net",port,bTls,bAutoReconnect);
    if (success != true) {
        std::cout << "ConnectFailReason: " << rest.get_ConnectFailReason() << "\r\n";
        std::cout << rest.lastErrorText() << "\r\n";
        return;
    }

    rest.SetAuthBasic("jira@example.com","JIRA_API_TOKEN");

    rest.AddHeader("Accept","application/json");

    CkStringBuilder sbResponseBody;
    success = rest.FullRequestNoBodySb("GET","/rest/api/2/issue/SCRUM-15",sbResponseBody);
    if (success != true) {
        std::cout << rest.lastErrorText() << "\r\n";
        return;
    }

    int respStatusCode = rest.get_ResponseStatusCode();
    if (respStatusCode >= 400) {
        std::cout << "Response Status Code = " << respStatusCode << "\r\n";
        std::cout << "Response Header:" << "\r\n";
        std::cout << rest.responseHeader() << "\r\n";
        std::cout << "Response Body:" << "\r\n";
        std::cout << sbResponseBody.getAsString() << "\r\n";
        return;
    }

    CkJsonObject jsonResponse;
    jsonResponse.LoadSb(sbResponseBody);

    const char *expand = 0;
    const char *id = 0;
    const char *self = 0;
    const char *key = 0;
    const char *fieldsIssuetypeSelf = 0;
    const char *fieldsIssuetypeId = 0;
    const char *fieldsIssuetypeDescription = 0;
    const char *fieldsIssuetypeIconUrl = 0;
    const char *fieldsIssuetypeName = 0;
    bool fieldsIssuetypeSubtask;
    bool fieldsTimespent;
    const char *fieldsProjectSelf = 0;
    const char *fieldsProjectId = 0;
    const char *fieldsProjectKey = 0;
    const char *fieldsProjectName = 0;
    const char *fieldsProjectProjectTypeKey = 0;
    const char *fieldsProjectAvatarUrls48x48 = 0;
    const char *fieldsProjectAvatarUrls24x24 = 0;
    const char *fieldsProjectAvatarUrls16x16 = 0;
    const char *fieldsProjectAvatarUrls32x32 = 0;
    const char *fieldsProjectProjectCategorySelf = 0;
    const char *fieldsProjectProjectCategoryId = 0;
    const char *fieldsProjectProjectCategoryDescription = 0;
    const char *fieldsProjectProjectCategoryName = 0;
    bool fieldsAggregatetimespent;
    const char *fieldsResolutionSelf = 0;
    const char *fieldsResolutionId = 0;
    const char *fieldsResolutionDescription = 0;
    const char *fieldsResolutionName = 0;
    const char *fieldsCustomfield_10027 = 0;
    const char *fieldsCustomfield_10028 = 0;
    const char *fieldsCustomfield_10029 = 0;
    const char *fieldsResolutiondate = 0;
    int fieldsWorkratio;
    const char *fieldsWatchesSelf = 0;
    int fieldsWatchesWatchCount;
    bool fieldsWatchesIsWatching;
    const char *fieldsLastViewed = 0;
    const char *fieldsCreated = 0;
    bool fieldsCustomfield_10022;
    const char *fieldsCustomfield_10023 = 0;
    const char *fieldsPrioritySelf = 0;
    const char *fieldsPriorityIconUrl = 0;
    const char *fieldsPriorityName = 0;
    const char *fieldsPriorityId = 0;
    const char *fieldsCustomfield_10024 = 0;
    const char *fieldsCustomfield_10025 = 0;
    const char *fieldsCustomfield_10026 = 0;
    bool fieldsCustomfield_10017;
    bool fieldsCustomfield_10018;
    int fieldsCustomfield_10019;
    bool fieldsAggregatetimeoriginalestimate;
    bool fieldsTimeestimate;
    const char *fieldsAssigneeSelf = 0;
    const char *fieldsAssigneeName = 0;
    const char *fieldsAssigneeKey = 0;
    const char *fieldsAssigneeAccountId = 0;
    const char *fieldsAssigneeEmailAddress = 0;
    const char *fieldsAssigneeAvatarUrls48x48 = 0;
    const char *fieldsAssigneeAvatarUrls24x24 = 0;
    const char *fieldsAssigneeAvatarUrls16x16 = 0;
    const char *fieldsAssigneeAvatarUrls32x32 = 0;
    const char *fieldsAssigneeDisplayName = 0;
    bool fieldsAssigneeActive;
    const char *fieldsAssigneeTimeZone = 0;
    const char *fieldsUpdated = 0;
    const char *fieldsStatusSelf = 0;
    const char *fieldsStatusDescription = 0;
    const char *fieldsStatusIconUrl = 0;
    const char *fieldsStatusName = 0;
    const char *fieldsStatusId = 0;
    const char *fieldsStatusStatusCategorySelf = 0;
    int fieldsStatusStatusCategoryId;
    const char *fieldsStatusStatusCategoryKey = 0;
    const char *fieldsStatusStatusCategoryColorName = 0;
    const char *fieldsStatusStatusCategoryName = 0;
    bool fieldsTimeoriginalestimate;
    bool fieldsDescription;
    const char *fieldsCustomfield_10011 = 0;
    bool fieldsCustomfield_10012;
    const char *fieldsCustomfield_10013 = 0;
    bool fieldsCustomfield_10014;
    bool fieldsCustomfield_10015;
    bool fieldsSecurity;
    bool fieldsCustomfield_10008;
    bool fieldsAggregatetimeestimate;
    bool fieldsCustomfield_10009;
    const char *fieldsSummary = 0;
    const char *fieldsCreatorSelf = 0;
    const char *fieldsCreatorName = 0;
    const char *fieldsCreatorKey = 0;
    const char *fieldsCreatorAccountId = 0;
    const char *fieldsCreatorEmailAddress = 0;
    const char *fieldsCreatorAvatarUrls48x48 = 0;
    const char *fieldsCreatorAvatarUrls24x24 = 0;
    const char *fieldsCreatorAvatarUrls16x16 = 0;
    const char *fieldsCreatorAvatarUrls32x32 = 0;
    const char *fieldsCreatorDisplayName = 0;
    bool fieldsCreatorActive;
    const char *fieldsCreatorTimeZone = 0;
    const char *fieldsReporterSelf = 0;
    const char *fieldsReporterName = 0;
    const char *fieldsReporterKey = 0;
    const char *fieldsReporterAccountId = 0;
    const char *fieldsReporterEmailAddress = 0;
    const char *fieldsReporterAvatarUrls48x48 = 0;
    const char *fieldsReporterAvatarUrls24x24 = 0;
    const char *fieldsReporterAvatarUrls16x16 = 0;
    const char *fieldsReporterAvatarUrls32x32 = 0;
    const char *fieldsReporterDisplayName = 0;
    bool fieldsReporterActive;
    const char *fieldsReporterTimeZone = 0;
    const char *fieldsCustomfield_10000 = 0;
    int fieldsAggregateprogressProgress;
    int fieldsAggregateprogressTotal;
    bool fieldsCustomfield_10001;
    bool fieldsCustomfield_10002;
    const char *fieldsCustomfield_10003 = 0;
    bool fieldsCustomfield_10004;
    bool fieldsEnvironment;
    bool fieldsDuedate;
    int fieldsProgressProgress;
    int fieldsProgressTotal;
    const char *fieldsVotesSelf = 0;
    int fieldsVotesVotes;
    bool fieldsVotesHasVoted;
    int fieldsCommentMaxResults;
    int fieldsCommentTotal;
    int fieldsCommentStartAt;
    int fieldsWorklogStartAt;
    int fieldsWorklogMaxResults;
    int fieldsWorklogTotal;
    int i;
    int count_i;
    const char *strVal = 0;
    const char *authorSelf = 0;
    const char *authorName = 0;
    const char *authorKey = 0;
    const char *authorAccountId = 0;
    const char *authorEmailAddress = 0;
    const char *authorAvatarUrls48x48 = 0;
    const char *authorAvatarUrls24x24 = 0;
    const char *authorAvatarUrls16x16 = 0;
    const char *authorAvatarUrls32x32 = 0;
    const char *authorDisplayName = 0;
    bool authorActive;
    const char *authorTimeZone = 0;
    const char *body = 0;
    const char *updateAuthorSelf = 0;
    const char *updateAuthorName = 0;
    const char *updateAuthorKey = 0;
    const char *updateAuthorAccountId = 0;
    const char *updateAuthorEmailAddress = 0;
    const char *updateAuthorAvatarUrls48x48 = 0;
    const char *updateAuthorAvatarUrls24x24 = 0;
    const char *updateAuthorAvatarUrls16x16 = 0;
    const char *updateAuthorAvatarUrls32x32 = 0;
    const char *updateAuthorDisplayName = 0;
    bool updateAuthorActive;
    const char *updateAuthorTimeZone = 0;
    const char *created = 0;
    const char *updated = 0;

    expand = jsonResponse.stringOf("expand");
    id = jsonResponse.stringOf("id");
    self = jsonResponse.stringOf("self");
    key = jsonResponse.stringOf("key");
    fieldsIssuetypeSelf = jsonResponse.stringOf("fields.issuetype.self");
    fieldsIssuetypeId = jsonResponse.stringOf("fields.issuetype.id");
    fieldsIssuetypeDescription = jsonResponse.stringOf("fields.issuetype.description");
    fieldsIssuetypeIconUrl = jsonResponse.stringOf("fields.issuetype.iconUrl");
    fieldsIssuetypeName = jsonResponse.stringOf("fields.issuetype.name");
    fieldsIssuetypeSubtask = jsonResponse.BoolOf("fields.issuetype.subtask");
    fieldsTimespent = jsonResponse.IsNullOf("fields.timespent");
    fieldsProjectSelf = jsonResponse.stringOf("fields.project.self");
    fieldsProjectId = jsonResponse.stringOf("fields.project.id");
    fieldsProjectKey = jsonResponse.stringOf("fields.project.key");
    fieldsProjectName = jsonResponse.stringOf("fields.project.name");
    fieldsProjectProjectTypeKey = jsonResponse.stringOf("fields.project.projectTypeKey");
    fieldsProjectAvatarUrls48x48 = jsonResponse.stringOf("fields.project.avatarUrls.48x48");
    fieldsProjectAvatarUrls24x24 = jsonResponse.stringOf("fields.project.avatarUrls.24x24");
    fieldsProjectAvatarUrls16x16 = jsonResponse.stringOf("fields.project.avatarUrls.16x16");
    fieldsProjectAvatarUrls32x32 = jsonResponse.stringOf("fields.project.avatarUrls.32x32");
    fieldsProjectProjectCategorySelf = jsonResponse.stringOf("fields.project.projectCategory.self");
    fieldsProjectProjectCategoryId = jsonResponse.stringOf("fields.project.projectCategory.id");
    fieldsProjectProjectCategoryDescription = jsonResponse.stringOf("fields.project.projectCategory.description");
    fieldsProjectProjectCategoryName = jsonResponse.stringOf("fields.project.projectCategory.name");
    fieldsAggregatetimespent = jsonResponse.IsNullOf("fields.aggregatetimespent");
    fieldsResolutionSelf = jsonResponse.stringOf("fields.resolution.self");
    fieldsResolutionId = jsonResponse.stringOf("fields.resolution.id");
    fieldsResolutionDescription = jsonResponse.stringOf("fields.resolution.description");
    fieldsResolutionName = jsonResponse.stringOf("fields.resolution.name");
    fieldsCustomfield_10027 = jsonResponse.stringOf("fields.customfield_10027");
    fieldsCustomfield_10028 = jsonResponse.stringOf("fields.customfield_10028");
    fieldsCustomfield_10029 = jsonResponse.stringOf("fields.customfield_10029");
    fieldsResolutiondate = jsonResponse.stringOf("fields.resolutiondate");
    fieldsWorkratio = jsonResponse.IntOf("fields.workratio");
    fieldsWatchesSelf = jsonResponse.stringOf("fields.watches.self");
    fieldsWatchesWatchCount = jsonResponse.IntOf("fields.watches.watchCount");
    fieldsWatchesIsWatching = jsonResponse.BoolOf("fields.watches.isWatching");
    fieldsLastViewed = jsonResponse.stringOf("fields.lastViewed");
    fieldsCreated = jsonResponse.stringOf("fields.created");
    fieldsCustomfield_10022 = jsonResponse.IsNullOf("fields.customfield_10022");
    fieldsCustomfield_10023 = jsonResponse.stringOf("fields.customfield_10023");
    fieldsPrioritySelf = jsonResponse.stringOf("fields.priority.self");
    fieldsPriorityIconUrl = jsonResponse.stringOf("fields.priority.iconUrl");
    fieldsPriorityName = jsonResponse.stringOf("fields.priority.name");
    fieldsPriorityId = jsonResponse.stringOf("fields.priority.id");
    fieldsCustomfield_10024 = jsonResponse.stringOf("fields.customfield_10024");
    fieldsCustomfield_10025 = jsonResponse.stringOf("fields.customfield_10025");
    fieldsCustomfield_10026 = jsonResponse.stringOf("fields.customfield_10026");
    fieldsCustomfield_10017 = jsonResponse.IsNullOf("fields.customfield_10017");
    fieldsCustomfield_10018 = jsonResponse.IsNullOf("fields.customfield_10018");
    fieldsCustomfield_10019 = jsonResponse.IntOf("fields.customfield_10019");
    fieldsAggregatetimeoriginalestimate = jsonResponse.IsNullOf("fields.aggregatetimeoriginalestimate");
    fieldsTimeestimate = jsonResponse.IsNullOf("fields.timeestimate");
    fieldsAssigneeSelf = jsonResponse.stringOf("fields.assignee.self");
    fieldsAssigneeName = jsonResponse.stringOf("fields.assignee.name");
    fieldsAssigneeKey = jsonResponse.stringOf("fields.assignee.key");
    fieldsAssigneeAccountId = jsonResponse.stringOf("fields.assignee.accountId");
    fieldsAssigneeEmailAddress = jsonResponse.stringOf("fields.assignee.emailAddress");
    fieldsAssigneeAvatarUrls48x48 = jsonResponse.stringOf("fields.assignee.avatarUrls.48x48");
    fieldsAssigneeAvatarUrls24x24 = jsonResponse.stringOf("fields.assignee.avatarUrls.24x24");
    fieldsAssigneeAvatarUrls16x16 = jsonResponse.stringOf("fields.assignee.avatarUrls.16x16");
    fieldsAssigneeAvatarUrls32x32 = jsonResponse.stringOf("fields.assignee.avatarUrls.32x32");
    fieldsAssigneeDisplayName = jsonResponse.stringOf("fields.assignee.displayName");
    fieldsAssigneeActive = jsonResponse.BoolOf("fields.assignee.active");
    fieldsAssigneeTimeZone = jsonResponse.stringOf("fields.assignee.timeZone");
    fieldsUpdated = jsonResponse.stringOf("fields.updated");
    fieldsStatusSelf = jsonResponse.stringOf("fields.status.self");
    fieldsStatusDescription = jsonResponse.stringOf("fields.status.description");
    fieldsStatusIconUrl = jsonResponse.stringOf("fields.status.iconUrl");
    fieldsStatusName = jsonResponse.stringOf("fields.status.name");
    fieldsStatusId = jsonResponse.stringOf("fields.status.id");
    fieldsStatusStatusCategorySelf = jsonResponse.stringOf("fields.status.statusCategory.self");
    fieldsStatusStatusCategoryId = jsonResponse.IntOf("fields.status.statusCategory.id");
    fieldsStatusStatusCategoryKey = jsonResponse.stringOf("fields.status.statusCategory.key");
    fieldsStatusStatusCategoryColorName = jsonResponse.stringOf("fields.status.statusCategory.colorName");
    fieldsStatusStatusCategoryName = jsonResponse.stringOf("fields.status.statusCategory.name");
    fieldsTimeoriginalestimate = jsonResponse.IsNullOf("fields.timeoriginalestimate");
    fieldsDescription = jsonResponse.IsNullOf("fields.description");
    fieldsCustomfield_10011 = jsonResponse.stringOf("fields.customfield_10011");
    fieldsCustomfield_10012 = jsonResponse.IsNullOf("fields.customfield_10012");
    fieldsCustomfield_10013 = jsonResponse.stringOf("fields.customfield_10013");
    fieldsCustomfield_10014 = jsonResponse.IsNullOf("fields.customfield_10014");
    fieldsCustomfield_10015 = jsonResponse.IsNullOf("fields.customfield_10015");
    fieldsSecurity = jsonResponse.IsNullOf("fields.security");
    fieldsCustomfield_10008 = jsonResponse.IsNullOf("fields.customfield_10008");
    fieldsAggregatetimeestimate = jsonResponse.IsNullOf("fields.aggregatetimeestimate");
    fieldsCustomfield_10009 = jsonResponse.IsNullOf("fields.customfield_10009");
    fieldsSummary = jsonResponse.stringOf("fields.summary");
    fieldsCreatorSelf = jsonResponse.stringOf("fields.creator.self");
    fieldsCreatorName = jsonResponse.stringOf("fields.creator.name");
    fieldsCreatorKey = jsonResponse.stringOf("fields.creator.key");
    fieldsCreatorAccountId = jsonResponse.stringOf("fields.creator.accountId");
    fieldsCreatorEmailAddress = jsonResponse.stringOf("fields.creator.emailAddress");
    fieldsCreatorAvatarUrls48x48 = jsonResponse.stringOf("fields.creator.avatarUrls.48x48");
    fieldsCreatorAvatarUrls24x24 = jsonResponse.stringOf("fields.creator.avatarUrls.24x24");
    fieldsCreatorAvatarUrls16x16 = jsonResponse.stringOf("fields.creator.avatarUrls.16x16");
    fieldsCreatorAvatarUrls32x32 = jsonResponse.stringOf("fields.creator.avatarUrls.32x32");
    fieldsCreatorDisplayName = jsonResponse.stringOf("fields.creator.displayName");
    fieldsCreatorActive = jsonResponse.BoolOf("fields.creator.active");
    fieldsCreatorTimeZone = jsonResponse.stringOf("fields.creator.timeZone");
    fieldsReporterSelf = jsonResponse.stringOf("fields.reporter.self");
    fieldsReporterName = jsonResponse.stringOf("fields.reporter.name");
    fieldsReporterKey = jsonResponse.stringOf("fields.reporter.key");
    fieldsReporterAccountId = jsonResponse.stringOf("fields.reporter.accountId");
    fieldsReporterEmailAddress = jsonResponse.stringOf("fields.reporter.emailAddress");
    fieldsReporterAvatarUrls48x48 = jsonResponse.stringOf("fields.reporter.avatarUrls.48x48");
    fieldsReporterAvatarUrls24x24 = jsonResponse.stringOf("fields.reporter.avatarUrls.24x24");
    fieldsReporterAvatarUrls16x16 = jsonResponse.stringOf("fields.reporter.avatarUrls.16x16");
    fieldsReporterAvatarUrls32x32 = jsonResponse.stringOf("fields.reporter.avatarUrls.32x32");
    fieldsReporterDisplayName = jsonResponse.stringOf("fields.reporter.displayName");
    fieldsReporterActive = jsonResponse.BoolOf("fields.reporter.active");
    fieldsReporterTimeZone = jsonResponse.stringOf("fields.reporter.timeZone");
    fieldsCustomfield_10000 = jsonResponse.stringOf("fields.customfield_10000");
    fieldsAggregateprogressProgress = jsonResponse.IntOf("fields.aggregateprogress.progress");
    fieldsAggregateprogressTotal = jsonResponse.IntOf("fields.aggregateprogress.total");
    fieldsCustomfield_10001 = jsonResponse.IsNullOf("fields.customfield_10001");
    fieldsCustomfield_10002 = jsonResponse.IsNullOf("fields.customfield_10002");
    fieldsCustomfield_10003 = jsonResponse.stringOf("fields.customfield_10003");
    fieldsCustomfield_10004 = jsonResponse.IsNullOf("fields.customfield_10004");
    fieldsEnvironment = jsonResponse.IsNullOf("fields.environment");
    fieldsDuedate = jsonResponse.IsNullOf("fields.duedate");
    fieldsProgressProgress = jsonResponse.IntOf("fields.progress.progress");
    fieldsProgressTotal = jsonResponse.IntOf("fields.progress.total");
    fieldsVotesSelf = jsonResponse.stringOf("fields.votes.self");
    fieldsVotesVotes = jsonResponse.IntOf("fields.votes.votes");
    fieldsVotesHasVoted = jsonResponse.BoolOf("fields.votes.hasVoted");
    fieldsCommentMaxResults = jsonResponse.IntOf("fields.comment.maxResults");
    fieldsCommentTotal = jsonResponse.IntOf("fields.comment.total");
    fieldsCommentStartAt = jsonResponse.IntOf("fields.comment.startAt");
    fieldsWorklogStartAt = jsonResponse.IntOf("fields.worklog.startAt");
    fieldsWorklogMaxResults = jsonResponse.IntOf("fields.worklog.maxResults");
    fieldsWorklogTotal = jsonResponse.IntOf("fields.worklog.total");
    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.fixVersions");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.labels");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.customfield_10016");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.versions");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.issuelinks");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.components");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.customfield_10010");
    while (i < count_i) {
        jsonResponse.put_I(i);
        strVal = jsonResponse.stringOf("fields.customfield_10010[i]");
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.attachment");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.subtasks");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.comment.comments");
    while (i < count_i) {
        jsonResponse.put_I(i);
        self = jsonResponse.stringOf("fields.comment.comments[i].self");
        id = jsonResponse.stringOf("fields.comment.comments[i].id");
        authorSelf = jsonResponse.stringOf("fields.comment.comments[i].author.self");
        authorName = jsonResponse.stringOf("fields.comment.comments[i].author.name");
        authorKey = jsonResponse.stringOf("fields.comment.comments[i].author.key");
        authorAccountId = jsonResponse.stringOf("fields.comment.comments[i].author.accountId");
        authorEmailAddress = jsonResponse.stringOf("fields.comment.comments[i].author.emailAddress");
        authorAvatarUrls48x48 = jsonResponse.stringOf("fields.comment.comments[i].author.avatarUrls.48x48");
        authorAvatarUrls24x24 = jsonResponse.stringOf("fields.comment.comments[i].author.avatarUrls.24x24");
        authorAvatarUrls16x16 = jsonResponse.stringOf("fields.comment.comments[i].author.avatarUrls.16x16");
        authorAvatarUrls32x32 = jsonResponse.stringOf("fields.comment.comments[i].author.avatarUrls.32x32");
        authorDisplayName = jsonResponse.stringOf("fields.comment.comments[i].author.displayName");
        authorActive = jsonResponse.BoolOf("fields.comment.comments[i].author.active");
        authorTimeZone = jsonResponse.stringOf("fields.comment.comments[i].author.timeZone");
        body = jsonResponse.stringOf("fields.comment.comments[i].body");
        updateAuthorSelf = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.self");
        updateAuthorName = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.name");
        updateAuthorKey = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.key");
        updateAuthorAccountId = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.accountId");
        updateAuthorEmailAddress = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.emailAddress");
        updateAuthorAvatarUrls48x48 = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.avatarUrls.48x48");
        updateAuthorAvatarUrls24x24 = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.avatarUrls.24x24");
        updateAuthorAvatarUrls16x16 = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.avatarUrls.16x16");
        updateAuthorAvatarUrls32x32 = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.avatarUrls.32x32");
        updateAuthorDisplayName = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.displayName");
        updateAuthorActive = jsonResponse.BoolOf("fields.comment.comments[i].updateAuthor.active");
        updateAuthorTimeZone = jsonResponse.stringOf("fields.comment.comments[i].updateAuthor.timeZone");
        created = jsonResponse.stringOf("fields.comment.comments[i].created");
        updated = jsonResponse.stringOf("fields.comment.comments[i].updated");
        i = i + 1;
    }

    i = 0;
    count_i = jsonResponse.SizeOfArray("fields.worklog.worklogs");
    while (i < count_i) {
        jsonResponse.put_I(i);
        i = i + 1;
    }
    }

Sample JSON Response Body

{
  "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
  "id": "10014",
  "self": "https://chilkat.atlassian.net/rest/api/2/issue/10014",
  "key": "SCRUM-15",
  "fields": {
    "issuetype": {
      "self": "https://chilkat.atlassian.net/rest/api/2/issuetype/10001",
      "id": "10001",
      "description": "Stories track functionality or features expressed as user goals.",
      "iconUrl": "https://chilkat.atlassian.net/images/icons/issuetypes/story.svg",
      "name": "Story",
      "subtask": false
    },
    "timespent": null,
    "project": {
      "self": "https://chilkat.atlassian.net/rest/api/2/project/10000",
      "id": "10000",
      "key": "SCRUM",
      "name": "Scrumsoft",
      "projectTypeKey": "software",
      "avatarUrls": {
        "48x48": "https://chilkat.atlassian.net/secure/projectavatar?pid=10000&avatarId=10400",
        "24x24": "https://chilkat.atlassian.net/secure/projectavatar?size=small&pid=10000&avatarId=10400",
        "16x16": "https://chilkat.atlassian.net/secure/projectavatar?size=xsmall&pid=10000&avatarId=10400",
        "32x32": "https://chilkat.atlassian.net/secure/projectavatar?size=medium&pid=10000&avatarId=10400"
      },
      "projectCategory": {
        "self": "https://chilkat.atlassian.net/rest/api/2/projectCategory/10002",
        "id": "10002",
        "description": "Insane Projects",
        "name": "Insane"
      }
    },
    "fixVersions": [
    ],
    "aggregatetimespent": null,
    "resolution": {
      "self": "https://chilkat.atlassian.net/rest/api/2/resolution/10000",
      "id": "10000",
      "description": "Work has been completed on this issue.",
      "name": "Done"
    },
    "customfield_10027": "",
    "customfield_10028": "",
    "customfield_10029": "",
    "resolutiondate": "2018-04-08T00:33:55.852-0500",
    "workratio": -1,
    "watches": {
      "self": "https://chilkat.atlassian.net/rest/api/2/issue/SCRUM-15/watchers",
      "watchCount": 0,
      "isWatching": false
    },
    "lastViewed": "2018-04-12T20:07:08.181-0500",
    "created": "2018-04-03T09:57:55.852-0500",
    "customfield_10022": null,
    "customfield_10023": "",
    "priority": {
      "self": "https://chilkat.atlassian.net/rest/api/2/priority/3",
      "iconUrl": "https://chilkat.atlassian.net/images/icons/priorities/medium.svg",
      "name": "Medium",
      "id": "3"
    },
    "customfield_10024": "",
    "customfield_10025": "",
    "customfield_10026": "",
    "labels": [
    ],
    "customfield_10016": [
    ],
    "customfield_10017": null,
    "customfield_10018": null,
    "customfield_10019": 4.0,
    "aggregatetimeoriginalestimate": null,
    "timeestimate": null,
    "versions": [
    ],
    "issuelinks": [
    ],
    "assignee": {
      "self": "https://chilkat.atlassian.net/rest/api/2/user?username=matt",
      "name": "matt",
      "key": "matt",
      "accountId": "5acf82d7926ac92a7c0d7bd3",
      "emailAddress": "matt@@chilkat.io",
      "avatarUrls": {
        "48x48": "https://avatar-cdn.atlassian.com/ae220e85f283d0ecea372e06ad2261d3?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fae220e85f283d0ecea372e06ad2261d3%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
        "24x24": "https://avatar-cdn.atlassian.com/ae220e85f283d0ecea372e06ad2261d3?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fae220e85f283d0ecea372e06ad2261d3%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
        "16x16": "https://avatar-cdn.atlassian.com/ae220e85f283d0ecea372e06ad2261d3?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fae220e85f283d0ecea372e06ad2261d3%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
        "32x32": "https://avatar-cdn.atlassian.com/ae220e85f283d0ecea372e06ad2261d3?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fae220e85f283d0ecea372e06ad2261d3%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
      },
      "displayName": "Matt of Chilkat",
      "active": true,
      "timeZone": "America/Chicago"
    },
    "updated": "2018-04-12T20:07:08.104-0500",
    "status": {
      "self": "https://chilkat.atlassian.net/rest/api/2/status/10001",
      "description": "",
      "iconUrl": "https://chilkat.atlassian.net/",
      "name": "Done",
      "id": "10001",
      "statusCategory": {
        "self": "https://chilkat.atlassian.net/rest/api/2/statuscategory/3",
        "id": 3,
        "key": "done",
        "colorName": "green",
        "name": "Done"
      }
    },
    "components": [
    ],
    "timeoriginalestimate": null,
    "description": null,
    "customfield_10010": [
      "com.atlassian.greenhopper.service.sprint.Sprint@@3aaca4f7[id=1,rapidViewId=1,state=ACTIVE,name=Sample Sprint 2,goal=<null>,startDate=2018-04-03T14:57:57.335Z,endDate=2018-04-17T15:17:57.335Z,completeDate=<null>,sequence=1]"
    ],
    "customfield_10011": "0|i0000n:",
    "customfield_10012": null,
    "customfield_10013": "3_*:*_1_*:*_208320000_*|*_10000_*:*_1_*:*_189840000_*|*_10001_*:*_1_*:*_0",
    "customfield_10014": null,
    "customfield_10015": null,
    "timetracking": {},
    "security": null,
    "customfield_10008": null,
    "aggregatetimeestimate": null,
    "customfield_10009": null,
    "attachment": [
    ],
    "summary": "As a scrum master, I can see the progress of a sprint via the Burndown Chart >> Click \"Reports\" to view the Burndown Chart",
    "creator": {
      "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
      "name": "admin",
      "key": "admin",
      "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
      "emailAddress": "admin@@chilkatsoft.com",
      "avatarUrls": {
        "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
        "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
        "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
        "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
      },
      "displayName": "Chilkat Admin",
      "active": true,
      "timeZone": "America/Chicago"
    },
    "subtasks": [
    ],
    "reporter": {
      "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
      "name": "admin",
      "key": "admin",
      "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
      "emailAddress": "admin@@chilkatsoft.com",
      "avatarUrls": {
        "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
        "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
        "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
        "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
      },
      "displayName": "Chilkat Admin",
      "active": true,
      "timeZone": "America/Chicago"
    },
    "customfield_10000": "{}",
    "aggregateprogress": {
      "progress": 0,
      "total": 0
    },
    "customfield_10001": null,
    "customfield_10002": null,
    "customfield_10003": "",
    "customfield_10004": null,
    "environment": null,
    "duedate": null,
    "progress": {
      "progress": 0,
      "total": 0
    },
    "votes": {
      "self": "https://chilkat.atlassian.net/rest/api/2/issue/SCRUM-15/votes",
      "votes": 0,
      "hasVoted": false
    },
    "comment": {
      "comments": [
        {
          "self": "https://chilkat.atlassian.net/rest/api/2/issue/10014/comment/10006",
          "id": "10006",
          "author": {
            "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
            "name": "admin",
            "key": "admin",
            "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
            "emailAddress": "admin@@chilkatsoft.com",
            "avatarUrls": {
              "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
              "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
              "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
              "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
            },
            "displayName": "Chilkat Admin",
            "active": true,
            "timeZone": "America/Chicago"
          },
          "body": "Joined Sample Sprint 2 7 days 9 hours 10 minutes ago",
          "updateAuthor": {
            "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
            "name": "admin",
            "key": "admin",
            "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
            "emailAddress": "admin@@chilkatsoft.com",
            "avatarUrls": {
              "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
              "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
              "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
              "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
            },
            "displayName": "Chilkat Admin",
            "active": true,
            "timeZone": "America/Chicago"
          },
          "created": "2018-04-08T00:33:55.852-0500",
          "updated": "2018-04-08T00:33:55.852-0500"
        },
        {
          "self": "https://chilkat.atlassian.net/rest/api/2/issue/10014/comment/10007",
          "id": "10007",
          "author": {
            "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
            "name": "admin",
            "key": "admin",
            "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
            "emailAddress": "admin@@chilkatsoft.com",
            "avatarUrls": {
              "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
              "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
              "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
              "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
            },
            "displayName": "Chilkat Admin",
            "active": true,
            "timeZone": "America/Chicago"
          },
          "body": "To Do to In Progress 5 days 4 hours 26 minutes ago\r\nIn Progress to Done 2 days 18 hours 34 minutes ago",
          "updateAuthor": {
            "self": "https://chilkat.atlassian.net/rest/api/2/user?username=admin",
            "name": "admin",
            "key": "admin",
            "accountId": "557058:be8b47b5-3bc0-43f6-b6b2-2cca0de12204",
            "emailAddress": "admin@@chilkatsoft.com",
            "avatarUrls": {
              "48x48": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
              "24x24": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
              "16x16": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
              "32x32": "https://avatar-cdn.atlassian.com/16d54dcc6d4bef86fd7ee62a7cf6334a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F16d54dcc6d4bef86fd7ee62a7cf6334a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
            },
            "displayName": "Chilkat Admin",
            "active": true,
            "timeZone": "America/Chicago"
          },
          "created": "2018-04-08T00:33:55.852-0500",
          "updated": "2018-04-08T00:33:55.852-0500"
        }
      ],
      "maxResults": 2,
      "total": 2,
      "startAt": 0
    },
    "worklog": {
      "startAt": 0,
      "maxResults": 20,
      "total": 0,
      "worklogs": [
      ]
    }
  }
}