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".
curl --user jira@example.com:JIRA_API_TOKEN \
--header 'Accept: application/json' \
--url 'https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15'
#include <C_CkRest.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>
void ChilkatSample(void)
{
HCkRest rest;
BOOL success;
BOOL bTls;
int port;
BOOL bAutoReconnect;
HCkStringBuilder sbResponseBody;
int respStatusCode;
HCkJsonObject jsonResponse;
const char *expand;
const char *id;
const char *self;
const char *key;
const char *fieldsIssuetypeSelf;
const char *fieldsIssuetypeId;
const char *fieldsIssuetypeDescription;
const char *fieldsIssuetypeIconUrl;
const char *fieldsIssuetypeName;
BOOL fieldsIssuetypeSubtask;
BOOL fieldsTimespent;
const char *fieldsProjectSelf;
const char *fieldsProjectId;
const char *fieldsProjectKey;
const char *fieldsProjectName;
const char *fieldsProjectProjectTypeKey;
const char *fieldsProjectAvatarUrls48x48;
const char *fieldsProjectAvatarUrls24x24;
const char *fieldsProjectAvatarUrls16x16;
const char *fieldsProjectAvatarUrls32x32;
const char *fieldsProjectProjectCategorySelf;
const char *fieldsProjectProjectCategoryId;
const char *fieldsProjectProjectCategoryDescription;
const char *fieldsProjectProjectCategoryName;
BOOL fieldsAggregatetimespent;
const char *fieldsResolutionSelf;
const char *fieldsResolutionId;
const char *fieldsResolutionDescription;
const char *fieldsResolutionName;
const char *fieldsCustomfield_10027;
const char *fieldsCustomfield_10028;
const char *fieldsCustomfield_10029;
const char *fieldsResolutiondate;
int fieldsWorkratio;
const char *fieldsWatchesSelf;
int fieldsWatchesWatchCount;
BOOL fieldsWatchesIsWatching;
const char *fieldsLastViewed;
const char *fieldsCreated;
BOOL fieldsCustomfield_10022;
const char *fieldsCustomfield_10023;
const char *fieldsPrioritySelf;
const char *fieldsPriorityIconUrl;
const char *fieldsPriorityName;
const char *fieldsPriorityId;
const char *fieldsCustomfield_10024;
const char *fieldsCustomfield_10025;
const char *fieldsCustomfield_10026;
BOOL fieldsCustomfield_10017;
BOOL fieldsCustomfield_10018;
int fieldsCustomfield_10019;
BOOL fieldsAggregatetimeoriginalestimate;
BOOL fieldsTimeestimate;
const char *fieldsAssigneeSelf;
const char *fieldsAssigneeName;
const char *fieldsAssigneeKey;
const char *fieldsAssigneeAccountId;
const char *fieldsAssigneeEmailAddress;
const char *fieldsAssigneeAvatarUrls48x48;
const char *fieldsAssigneeAvatarUrls24x24;
const char *fieldsAssigneeAvatarUrls16x16;
const char *fieldsAssigneeAvatarUrls32x32;
const char *fieldsAssigneeDisplayName;
BOOL fieldsAssigneeActive;
const char *fieldsAssigneeTimeZone;
const char *fieldsUpdated;
const char *fieldsStatusSelf;
const char *fieldsStatusDescription;
const char *fieldsStatusIconUrl;
const char *fieldsStatusName;
const char *fieldsStatusId;
const char *fieldsStatusStatusCategorySelf;
int fieldsStatusStatusCategoryId;
const char *fieldsStatusStatusCategoryKey;
const char *fieldsStatusStatusCategoryColorName;
const char *fieldsStatusStatusCategoryName;
BOOL fieldsTimeoriginalestimate;
BOOL fieldsDescription;
const char *fieldsCustomfield_10011;
BOOL fieldsCustomfield_10012;
const char *fieldsCustomfield_10013;
BOOL fieldsCustomfield_10014;
BOOL fieldsCustomfield_10015;
BOOL fieldsSecurity;
BOOL fieldsCustomfield_10008;
BOOL fieldsAggregatetimeestimate;
BOOL fieldsCustomfield_10009;
const char *fieldsSummary;
const char *fieldsCreatorSelf;
const char *fieldsCreatorName;
const char *fieldsCreatorKey;
const char *fieldsCreatorAccountId;
const char *fieldsCreatorEmailAddress;
const char *fieldsCreatorAvatarUrls48x48;
const char *fieldsCreatorAvatarUrls24x24;
const char *fieldsCreatorAvatarUrls16x16;
const char *fieldsCreatorAvatarUrls32x32;
const char *fieldsCreatorDisplayName;
BOOL fieldsCreatorActive;
const char *fieldsCreatorTimeZone;
const char *fieldsReporterSelf;
const char *fieldsReporterName;
const char *fieldsReporterKey;
const char *fieldsReporterAccountId;
const char *fieldsReporterEmailAddress;
const char *fieldsReporterAvatarUrls48x48;
const char *fieldsReporterAvatarUrls24x24;
const char *fieldsReporterAvatarUrls16x16;
const char *fieldsReporterAvatarUrls32x32;
const char *fieldsReporterDisplayName;
BOOL fieldsReporterActive;
const char *fieldsReporterTimeZone;
const char *fieldsCustomfield_10000;
int fieldsAggregateprogressProgress;
int fieldsAggregateprogressTotal;
BOOL fieldsCustomfield_10001;
BOOL fieldsCustomfield_10002;
const char *fieldsCustomfield_10003;
BOOL fieldsCustomfield_10004;
BOOL fieldsEnvironment;
BOOL fieldsDuedate;
int fieldsProgressProgress;
int fieldsProgressTotal;
const char *fieldsVotesSelf;
int fieldsVotesVotes;
BOOL fieldsVotesHasVoted;
int fieldsCommentMaxResults;
int fieldsCommentTotal;
int fieldsCommentStartAt;
int fieldsWorklogStartAt;
int fieldsWorklogMaxResults;
int fieldsWorklogTotal;
int i;
int count_i;
const char *strVal;
const char *authorSelf;
const char *authorName;
const char *authorKey;
const char *authorAccountId;
const char *authorEmailAddress;
const char *authorAvatarUrls48x48;
const char *authorAvatarUrls24x24;
const char *authorAvatarUrls16x16;
const char *authorAvatarUrls32x32;
const char *authorDisplayName;
BOOL authorActive;
const char *authorTimeZone;
const char *body;
const char *updateAuthorSelf;
const char *updateAuthorName;
const char *updateAuthorKey;
const char *updateAuthorAccountId;
const char *updateAuthorEmailAddress;
const char *updateAuthorAvatarUrls48x48;
const char *updateAuthorAvatarUrls24x24;
const char *updateAuthorAvatarUrls16x16;
const char *updateAuthorAvatarUrls32x32;
const char *updateAuthorDisplayName;
BOOL updateAuthorActive;
const char *updateAuthorTimeZone;
const char *created;
const char *updated;
rest = CkRest_Create();
// URL: https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15
bTls = TRUE;
port = 443;
bAutoReconnect = TRUE;
success = CkRest_Connect(rest,"your-domain.atlassian.net",port,bTls,bAutoReconnect);
if (success != TRUE) {
printf("ConnectFailReason: %d\n",CkRest_getConnectFailReason(rest));
printf("%s\n",CkRest_lastErrorText(rest));
CkRest_Dispose(rest);
return;
}
CkRest_SetAuthBasic(rest,"jira@example.com","JIRA_API_TOKEN");
CkRest_AddHeader(rest,"Accept","application/json");
sbResponseBody = CkStringBuilder_Create();
success = CkRest_FullRequestNoBodySb(rest,"GET","/rest/api/2/issue/SCRUM-15",sbResponseBody);
if (success != TRUE) {
printf("%s\n",CkRest_lastErrorText(rest));
CkRest_Dispose(rest);
CkStringBuilder_Dispose(sbResponseBody);
return;
}
respStatusCode = CkRest_getResponseStatusCode(rest);
if (respStatusCode >= 400) {
printf("Response Status Code = %d\n",respStatusCode);
printf("Response Header:\n");
printf("%s\n",CkRest_responseHeader(rest));
printf("Response Body:\n");
printf("%s\n",CkStringBuilder_getAsString(sbResponseBody));
CkRest_Dispose(rest);
CkStringBuilder_Dispose(sbResponseBody);
return;
}
jsonResponse = CkJsonObject_Create();
CkJsonObject_LoadSb(jsonResponse,sbResponseBody);
expand = CkJsonObject_stringOf(jsonResponse,"expand");
id = CkJsonObject_stringOf(jsonResponse,"id");
self = CkJsonObject_stringOf(jsonResponse,"self");
key = CkJsonObject_stringOf(jsonResponse,"key");
fieldsIssuetypeSelf = CkJsonObject_stringOf(jsonResponse,"fields.issuetype.self");
fieldsIssuetypeId = CkJsonObject_stringOf(jsonResponse,"fields.issuetype.id");
fieldsIssuetypeDescription = CkJsonObject_stringOf(jsonResponse,"fields.issuetype.description");
fieldsIssuetypeIconUrl = CkJsonObject_stringOf(jsonResponse,"fields.issuetype.iconUrl");
fieldsIssuetypeName = CkJsonObject_stringOf(jsonResponse,"fields.issuetype.name");
fieldsIssuetypeSubtask = CkJsonObject_BoolOf(jsonResponse,"fields.issuetype.subtask");
fieldsTimespent = CkJsonObject_IsNullOf(jsonResponse,"fields.timespent");
fieldsProjectSelf = CkJsonObject_stringOf(jsonResponse,"fields.project.self");
fieldsProjectId = CkJsonObject_stringOf(jsonResponse,"fields.project.id");
fieldsProjectKey = CkJsonObject_stringOf(jsonResponse,"fields.project.key");
fieldsProjectName = CkJsonObject_stringOf(jsonResponse,"fields.project.name");
fieldsProjectProjectTypeKey = CkJsonObject_stringOf(jsonResponse,"fields.project.projectTypeKey");
fieldsProjectAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.project.avatarUrls.48x48");
fieldsProjectAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.project.avatarUrls.24x24");
fieldsProjectAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.project.avatarUrls.16x16");
fieldsProjectAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.project.avatarUrls.32x32");
fieldsProjectProjectCategorySelf = CkJsonObject_stringOf(jsonResponse,"fields.project.projectCategory.self");
fieldsProjectProjectCategoryId = CkJsonObject_stringOf(jsonResponse,"fields.project.projectCategory.id");
fieldsProjectProjectCategoryDescription = CkJsonObject_stringOf(jsonResponse,"fields.project.projectCategory.description");
fieldsProjectProjectCategoryName = CkJsonObject_stringOf(jsonResponse,"fields.project.projectCategory.name");
fieldsAggregatetimespent = CkJsonObject_IsNullOf(jsonResponse,"fields.aggregatetimespent");
fieldsResolutionSelf = CkJsonObject_stringOf(jsonResponse,"fields.resolution.self");
fieldsResolutionId = CkJsonObject_stringOf(jsonResponse,"fields.resolution.id");
fieldsResolutionDescription = CkJsonObject_stringOf(jsonResponse,"fields.resolution.description");
fieldsResolutionName = CkJsonObject_stringOf(jsonResponse,"fields.resolution.name");
fieldsCustomfield_10027 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10027");
fieldsCustomfield_10028 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10028");
fieldsCustomfield_10029 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10029");
fieldsResolutiondate = CkJsonObject_stringOf(jsonResponse,"fields.resolutiondate");
fieldsWorkratio = CkJsonObject_IntOf(jsonResponse,"fields.workratio");
fieldsWatchesSelf = CkJsonObject_stringOf(jsonResponse,"fields.watches.self");
fieldsWatchesWatchCount = CkJsonObject_IntOf(jsonResponse,"fields.watches.watchCount");
fieldsWatchesIsWatching = CkJsonObject_BoolOf(jsonResponse,"fields.watches.isWatching");
fieldsLastViewed = CkJsonObject_stringOf(jsonResponse,"fields.lastViewed");
fieldsCreated = CkJsonObject_stringOf(jsonResponse,"fields.created");
fieldsCustomfield_10022 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10022");
fieldsCustomfield_10023 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10023");
fieldsPrioritySelf = CkJsonObject_stringOf(jsonResponse,"fields.priority.self");
fieldsPriorityIconUrl = CkJsonObject_stringOf(jsonResponse,"fields.priority.iconUrl");
fieldsPriorityName = CkJsonObject_stringOf(jsonResponse,"fields.priority.name");
fieldsPriorityId = CkJsonObject_stringOf(jsonResponse,"fields.priority.id");
fieldsCustomfield_10024 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10024");
fieldsCustomfield_10025 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10025");
fieldsCustomfield_10026 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10026");
fieldsCustomfield_10017 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10017");
fieldsCustomfield_10018 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10018");
fieldsCustomfield_10019 = CkJsonObject_IntOf(jsonResponse,"fields.customfield_10019");
fieldsAggregatetimeoriginalestimate = CkJsonObject_IsNullOf(jsonResponse,"fields.aggregatetimeoriginalestimate");
fieldsTimeestimate = CkJsonObject_IsNullOf(jsonResponse,"fields.timeestimate");
fieldsAssigneeSelf = CkJsonObject_stringOf(jsonResponse,"fields.assignee.self");
fieldsAssigneeName = CkJsonObject_stringOf(jsonResponse,"fields.assignee.name");
fieldsAssigneeKey = CkJsonObject_stringOf(jsonResponse,"fields.assignee.key");
fieldsAssigneeAccountId = CkJsonObject_stringOf(jsonResponse,"fields.assignee.accountId");
fieldsAssigneeEmailAddress = CkJsonObject_stringOf(jsonResponse,"fields.assignee.emailAddress");
fieldsAssigneeAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.assignee.avatarUrls.48x48");
fieldsAssigneeAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.assignee.avatarUrls.24x24");
fieldsAssigneeAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.assignee.avatarUrls.16x16");
fieldsAssigneeAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.assignee.avatarUrls.32x32");
fieldsAssigneeDisplayName = CkJsonObject_stringOf(jsonResponse,"fields.assignee.displayName");
fieldsAssigneeActive = CkJsonObject_BoolOf(jsonResponse,"fields.assignee.active");
fieldsAssigneeTimeZone = CkJsonObject_stringOf(jsonResponse,"fields.assignee.timeZone");
fieldsUpdated = CkJsonObject_stringOf(jsonResponse,"fields.updated");
fieldsStatusSelf = CkJsonObject_stringOf(jsonResponse,"fields.status.self");
fieldsStatusDescription = CkJsonObject_stringOf(jsonResponse,"fields.status.description");
fieldsStatusIconUrl = CkJsonObject_stringOf(jsonResponse,"fields.status.iconUrl");
fieldsStatusName = CkJsonObject_stringOf(jsonResponse,"fields.status.name");
fieldsStatusId = CkJsonObject_stringOf(jsonResponse,"fields.status.id");
fieldsStatusStatusCategorySelf = CkJsonObject_stringOf(jsonResponse,"fields.status.statusCategory.self");
fieldsStatusStatusCategoryId = CkJsonObject_IntOf(jsonResponse,"fields.status.statusCategory.id");
fieldsStatusStatusCategoryKey = CkJsonObject_stringOf(jsonResponse,"fields.status.statusCategory.key");
fieldsStatusStatusCategoryColorName = CkJsonObject_stringOf(jsonResponse,"fields.status.statusCategory.colorName");
fieldsStatusStatusCategoryName = CkJsonObject_stringOf(jsonResponse,"fields.status.statusCategory.name");
fieldsTimeoriginalestimate = CkJsonObject_IsNullOf(jsonResponse,"fields.timeoriginalestimate");
fieldsDescription = CkJsonObject_IsNullOf(jsonResponse,"fields.description");
fieldsCustomfield_10011 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10011");
fieldsCustomfield_10012 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10012");
fieldsCustomfield_10013 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10013");
fieldsCustomfield_10014 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10014");
fieldsCustomfield_10015 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10015");
fieldsSecurity = CkJsonObject_IsNullOf(jsonResponse,"fields.security");
fieldsCustomfield_10008 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10008");
fieldsAggregatetimeestimate = CkJsonObject_IsNullOf(jsonResponse,"fields.aggregatetimeestimate");
fieldsCustomfield_10009 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10009");
fieldsSummary = CkJsonObject_stringOf(jsonResponse,"fields.summary");
fieldsCreatorSelf = CkJsonObject_stringOf(jsonResponse,"fields.creator.self");
fieldsCreatorName = CkJsonObject_stringOf(jsonResponse,"fields.creator.name");
fieldsCreatorKey = CkJsonObject_stringOf(jsonResponse,"fields.creator.key");
fieldsCreatorAccountId = CkJsonObject_stringOf(jsonResponse,"fields.creator.accountId");
fieldsCreatorEmailAddress = CkJsonObject_stringOf(jsonResponse,"fields.creator.emailAddress");
fieldsCreatorAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.creator.avatarUrls.48x48");
fieldsCreatorAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.creator.avatarUrls.24x24");
fieldsCreatorAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.creator.avatarUrls.16x16");
fieldsCreatorAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.creator.avatarUrls.32x32");
fieldsCreatorDisplayName = CkJsonObject_stringOf(jsonResponse,"fields.creator.displayName");
fieldsCreatorActive = CkJsonObject_BoolOf(jsonResponse,"fields.creator.active");
fieldsCreatorTimeZone = CkJsonObject_stringOf(jsonResponse,"fields.creator.timeZone");
fieldsReporterSelf = CkJsonObject_stringOf(jsonResponse,"fields.reporter.self");
fieldsReporterName = CkJsonObject_stringOf(jsonResponse,"fields.reporter.name");
fieldsReporterKey = CkJsonObject_stringOf(jsonResponse,"fields.reporter.key");
fieldsReporterAccountId = CkJsonObject_stringOf(jsonResponse,"fields.reporter.accountId");
fieldsReporterEmailAddress = CkJsonObject_stringOf(jsonResponse,"fields.reporter.emailAddress");
fieldsReporterAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.reporter.avatarUrls.48x48");
fieldsReporterAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.reporter.avatarUrls.24x24");
fieldsReporterAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.reporter.avatarUrls.16x16");
fieldsReporterAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.reporter.avatarUrls.32x32");
fieldsReporterDisplayName = CkJsonObject_stringOf(jsonResponse,"fields.reporter.displayName");
fieldsReporterActive = CkJsonObject_BoolOf(jsonResponse,"fields.reporter.active");
fieldsReporterTimeZone = CkJsonObject_stringOf(jsonResponse,"fields.reporter.timeZone");
fieldsCustomfield_10000 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10000");
fieldsAggregateprogressProgress = CkJsonObject_IntOf(jsonResponse,"fields.aggregateprogress.progress");
fieldsAggregateprogressTotal = CkJsonObject_IntOf(jsonResponse,"fields.aggregateprogress.total");
fieldsCustomfield_10001 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10001");
fieldsCustomfield_10002 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10002");
fieldsCustomfield_10003 = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10003");
fieldsCustomfield_10004 = CkJsonObject_IsNullOf(jsonResponse,"fields.customfield_10004");
fieldsEnvironment = CkJsonObject_IsNullOf(jsonResponse,"fields.environment");
fieldsDuedate = CkJsonObject_IsNullOf(jsonResponse,"fields.duedate");
fieldsProgressProgress = CkJsonObject_IntOf(jsonResponse,"fields.progress.progress");
fieldsProgressTotal = CkJsonObject_IntOf(jsonResponse,"fields.progress.total");
fieldsVotesSelf = CkJsonObject_stringOf(jsonResponse,"fields.votes.self");
fieldsVotesVotes = CkJsonObject_IntOf(jsonResponse,"fields.votes.votes");
fieldsVotesHasVoted = CkJsonObject_BoolOf(jsonResponse,"fields.votes.hasVoted");
fieldsCommentMaxResults = CkJsonObject_IntOf(jsonResponse,"fields.comment.maxResults");
fieldsCommentTotal = CkJsonObject_IntOf(jsonResponse,"fields.comment.total");
fieldsCommentStartAt = CkJsonObject_IntOf(jsonResponse,"fields.comment.startAt");
fieldsWorklogStartAt = CkJsonObject_IntOf(jsonResponse,"fields.worklog.startAt");
fieldsWorklogMaxResults = CkJsonObject_IntOf(jsonResponse,"fields.worklog.maxResults");
fieldsWorklogTotal = CkJsonObject_IntOf(jsonResponse,"fields.worklog.total");
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.fixVersions");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.labels");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.customfield_10016");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.versions");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.issuelinks");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.components");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.customfield_10010");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
strVal = CkJsonObject_stringOf(jsonResponse,"fields.customfield_10010[i]");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.attachment");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.subtasks");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.comment.comments");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
self = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].self");
id = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].id");
authorSelf = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.self");
authorName = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.name");
authorKey = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.key");
authorAccountId = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.accountId");
authorEmailAddress = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.emailAddress");
authorAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.avatarUrls.48x48");
authorAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.avatarUrls.24x24");
authorAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.avatarUrls.16x16");
authorAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.avatarUrls.32x32");
authorDisplayName = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.displayName");
authorActive = CkJsonObject_BoolOf(jsonResponse,"fields.comment.comments[i].author.active");
authorTimeZone = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].author.timeZone");
body = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].body");
updateAuthorSelf = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.self");
updateAuthorName = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.name");
updateAuthorKey = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.key");
updateAuthorAccountId = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.accountId");
updateAuthorEmailAddress = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.emailAddress");
updateAuthorAvatarUrls48x48 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.avatarUrls.48x48");
updateAuthorAvatarUrls24x24 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.avatarUrls.24x24");
updateAuthorAvatarUrls16x16 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.avatarUrls.16x16");
updateAuthorAvatarUrls32x32 = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.avatarUrls.32x32");
updateAuthorDisplayName = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.displayName");
updateAuthorActive = CkJsonObject_BoolOf(jsonResponse,"fields.comment.comments[i].updateAuthor.active");
updateAuthorTimeZone = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updateAuthor.timeZone");
created = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].created");
updated = CkJsonObject_stringOf(jsonResponse,"fields.comment.comments[i].updated");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jsonResponse,"fields.worklog.worklogs");
while (i < count_i) {
CkJsonObject_putI(jsonResponse,i);
i = i + 1;
}
CkRest_Dispose(rest);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jsonResponse);
}
{
"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": [
]
}
}
}