PowerBuilder 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'

PowerBuilder Example

integer li_rc
oleobject loo_Rest
integer li_Success
integer li_BTls
integer li_Port
integer li_BAutoReconnect
oleobject loo_SbResponseBody
integer li_RespStatusCode
oleobject loo_JsonResponse
string ls_Expand
string ls_Id
string ls_Self
string ls_Key
string ls_FieldsIssuetypeSelf
string ls_FieldsIssuetypeId
string ls_FieldsIssuetypeDescription
string ls_FieldsIssuetypeIconUrl
string ls_FieldsIssuetypeName
integer li_FieldsIssuetypeSubtask
integer li_FieldsTimespent
string ls_FieldsProjectSelf
string ls_FieldsProjectId
string ls_FieldsProjectKey
string ls_FieldsProjectName
string ls_FieldsProjectProjectTypeKey
string ls_FieldsProjectAvatarUrls48x48
string ls_FieldsProjectAvatarUrls24x24
string ls_FieldsProjectAvatarUrls16x16
string ls_FieldsProjectAvatarUrls32x32
string ls_FieldsProjectProjectCategorySelf
string ls_FieldsProjectProjectCategoryId
string ls_FieldsProjectProjectCategoryDescription
string ls_FieldsProjectProjectCategoryName
integer li_FieldsAggregatetimespent
string ls_FieldsResolutionSelf
string ls_FieldsResolutionId
string ls_FieldsResolutionDescription
string ls_FieldsResolutionName
string ls_FieldsCustomfield_10027
string ls_FieldsCustomfield_10028
string ls_FieldsCustomfield_10029
string ls_FieldsResolutiondate
integer li_FieldsWorkratio
string ls_FieldsWatchesSelf
integer li_FieldsWatchesWatchCount
integer li_FieldsWatchesIsWatching
string ls_FieldsLastViewed
string ls_FieldsCreated
integer li_FieldsCustomfield_10022
string ls_FieldsCustomfield_10023
string ls_FieldsPrioritySelf
string ls_FieldsPriorityIconUrl
string ls_FieldsPriorityName
string ls_FieldsPriorityId
string ls_FieldsCustomfield_10024
string ls_FieldsCustomfield_10025
string ls_FieldsCustomfield_10026
integer li_FieldsCustomfield_10017
integer li_FieldsCustomfield_10018
integer li_FieldsCustomfield_10019
integer li_FieldsAggregatetimeoriginalestimate
integer li_FieldsTimeestimate
string ls_FieldsAssigneeSelf
string ls_FieldsAssigneeName
string ls_FieldsAssigneeKey
string ls_FieldsAssigneeAccountId
string ls_FieldsAssigneeEmailAddress
string ls_FieldsAssigneeAvatarUrls48x48
string ls_FieldsAssigneeAvatarUrls24x24
string ls_FieldsAssigneeAvatarUrls16x16
string ls_FieldsAssigneeAvatarUrls32x32
string ls_FieldsAssigneeDisplayName
integer li_FieldsAssigneeActive
string ls_FieldsAssigneeTimeZone
string ls_FieldsUpdated
string ls_FieldsStatusSelf
string ls_FieldsStatusDescription
string ls_FieldsStatusIconUrl
string ls_FieldsStatusName
string ls_FieldsStatusId
string ls_FieldsStatusStatusCategorySelf
integer li_FieldsStatusStatusCategoryId
string ls_FieldsStatusStatusCategoryKey
string ls_FieldsStatusStatusCategoryColorName
string ls_FieldsStatusStatusCategoryName
integer li_FieldsTimeoriginalestimate
integer li_FieldsDescription
string ls_FieldsCustomfield_10011
integer li_FieldsCustomfield_10012
string ls_FieldsCustomfield_10013
integer li_FieldsCustomfield_10014
integer li_FieldsCustomfield_10015
integer li_FieldsSecurity
integer li_FieldsCustomfield_10008
integer li_FieldsAggregatetimeestimate
integer li_FieldsCustomfield_10009
string ls_FieldsSummary
string ls_FieldsCreatorSelf
string ls_FieldsCreatorName
string ls_FieldsCreatorKey
string ls_FieldsCreatorAccountId
string ls_FieldsCreatorEmailAddress
string ls_FieldsCreatorAvatarUrls48x48
string ls_FieldsCreatorAvatarUrls24x24
string ls_FieldsCreatorAvatarUrls16x16
string ls_FieldsCreatorAvatarUrls32x32
string ls_FieldsCreatorDisplayName
integer li_FieldsCreatorActive
string ls_FieldsCreatorTimeZone
string ls_FieldsReporterSelf
string ls_FieldsReporterName
string ls_FieldsReporterKey
string ls_FieldsReporterAccountId
string ls_FieldsReporterEmailAddress
string ls_FieldsReporterAvatarUrls48x48
string ls_FieldsReporterAvatarUrls24x24
string ls_FieldsReporterAvatarUrls16x16
string ls_FieldsReporterAvatarUrls32x32
string ls_FieldsReporterDisplayName
integer li_FieldsReporterActive
string ls_FieldsReporterTimeZone
string ls_FieldsCustomfield_10000
integer li_FieldsAggregateprogressProgress
integer li_FieldsAggregateprogressTotal
integer li_FieldsCustomfield_10001
integer li_FieldsCustomfield_10002
string ls_FieldsCustomfield_10003
integer li_FieldsCustomfield_10004
integer li_FieldsEnvironment
integer li_FieldsDuedate
integer li_FieldsProgressProgress
integer li_FieldsProgressTotal
string ls_FieldsVotesSelf
integer li_FieldsVotesVotes
integer li_FieldsVotesHasVoted
integer li_FieldsCommentMaxResults
integer li_FieldsCommentTotal
integer li_FieldsCommentStartAt
integer li_FieldsWorklogStartAt
integer li_FieldsWorklogMaxResults
integer li_FieldsWorklogTotal
integer i
integer li_Count_i
string ls_StrVal
string ls_AuthorSelf
string ls_AuthorName
string ls_AuthorKey
string ls_AuthorAccountId
string ls_AuthorEmailAddress
string ls_AuthorAvatarUrls48x48
string ls_AuthorAvatarUrls24x24
string ls_AuthorAvatarUrls16x16
string ls_AuthorAvatarUrls32x32
string ls_AuthorDisplayName
integer li_AuthorActive
string ls_AuthorTimeZone
string ls_Body
string ls_UpdateAuthorSelf
string ls_UpdateAuthorName
string ls_UpdateAuthorKey
string ls_UpdateAuthorAccountId
string ls_UpdateAuthorEmailAddress
string ls_UpdateAuthorAvatarUrls48x48
string ls_UpdateAuthorAvatarUrls24x24
string ls_UpdateAuthorAvatarUrls16x16
string ls_UpdateAuthorAvatarUrls32x32
string ls_UpdateAuthorDisplayName
integer li_UpdateAuthorActive
string ls_UpdateAuthorTimeZone
string ls_Created
string ls_Updated

loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
    destroy loo_Rest
    MessageBox("Error","Connecting to COM object failed")
    return
end if

//  URL: https://your-domain.atlassian.net/rest/api/2/issue/SCRUM-15
li_BTls = 1
li_Port = 443
li_BAutoReconnect = 1
li_Success = loo_Rest.Connect("your-domain.atlassian.net",li_Port,li_BTls,li_BAutoReconnect)
if li_Success <> 1 then
    Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    return
end if

loo_Rest.SetAuthBasic("jira@example.com","JIRA_API_TOKEN")

loo_Rest.AddHeader("Accept","application/json")

loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

li_Success = loo_Rest.FullRequestNoBodySb("GET","/rest/api/2/issue/SCRUM-15",loo_SbResponseBody)
if li_Success <> 1 then
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    destroy loo_SbResponseBody
    return
end if

li_RespStatusCode = loo_Rest.ResponseStatusCode
if li_RespStatusCode >= 400 then
    Write-Debug "Response Status Code = " + string(li_RespStatusCode)
    Write-Debug "Response Header:"
    Write-Debug loo_Rest.ResponseHeader
    Write-Debug "Response Body:"
    Write-Debug loo_SbResponseBody.GetAsString()
    destroy loo_Rest
    destroy loo_SbResponseBody
    return
end if

loo_JsonResponse = create oleobject
li_rc = loo_JsonResponse.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JsonResponse.LoadSb(loo_SbResponseBody)

ls_Expand = loo_JsonResponse.StringOf("expand")
ls_Id = loo_JsonResponse.StringOf("id")
ls_Self = loo_JsonResponse.StringOf("self")
ls_Key = loo_JsonResponse.StringOf("key")
ls_FieldsIssuetypeSelf = loo_JsonResponse.StringOf("fields.issuetype.self")
ls_FieldsIssuetypeId = loo_JsonResponse.StringOf("fields.issuetype.id")
ls_FieldsIssuetypeDescription = loo_JsonResponse.StringOf("fields.issuetype.description")
ls_FieldsIssuetypeIconUrl = loo_JsonResponse.StringOf("fields.issuetype.iconUrl")
ls_FieldsIssuetypeName = loo_JsonResponse.StringOf("fields.issuetype.name")
li_FieldsIssuetypeSubtask = loo_JsonResponse.BoolOf("fields.issuetype.subtask")
li_FieldsTimespent = loo_JsonResponse.IsNullOf("fields.timespent")
ls_FieldsProjectSelf = loo_JsonResponse.StringOf("fields.project.self")
ls_FieldsProjectId = loo_JsonResponse.StringOf("fields.project.id")
ls_FieldsProjectKey = loo_JsonResponse.StringOf("fields.project.key")
ls_FieldsProjectName = loo_JsonResponse.StringOf("fields.project.name")
ls_FieldsProjectProjectTypeKey = loo_JsonResponse.StringOf("fields.project.projectTypeKey")
ls_FieldsProjectAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.project.avatarUrls.48x48")
ls_FieldsProjectAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.project.avatarUrls.24x24")
ls_FieldsProjectAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.project.avatarUrls.16x16")
ls_FieldsProjectAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.project.avatarUrls.32x32")
ls_FieldsProjectProjectCategorySelf = loo_JsonResponse.StringOf("fields.project.projectCategory.self")
ls_FieldsProjectProjectCategoryId = loo_JsonResponse.StringOf("fields.project.projectCategory.id")
ls_FieldsProjectProjectCategoryDescription = loo_JsonResponse.StringOf("fields.project.projectCategory.description")
ls_FieldsProjectProjectCategoryName = loo_JsonResponse.StringOf("fields.project.projectCategory.name")
li_FieldsAggregatetimespent = loo_JsonResponse.IsNullOf("fields.aggregatetimespent")
ls_FieldsResolutionSelf = loo_JsonResponse.StringOf("fields.resolution.self")
ls_FieldsResolutionId = loo_JsonResponse.StringOf("fields.resolution.id")
ls_FieldsResolutionDescription = loo_JsonResponse.StringOf("fields.resolution.description")
ls_FieldsResolutionName = loo_JsonResponse.StringOf("fields.resolution.name")
ls_FieldsCustomfield_10027 = loo_JsonResponse.StringOf("fields.customfield_10027")
ls_FieldsCustomfield_10028 = loo_JsonResponse.StringOf("fields.customfield_10028")
ls_FieldsCustomfield_10029 = loo_JsonResponse.StringOf("fields.customfield_10029")
ls_FieldsResolutiondate = loo_JsonResponse.StringOf("fields.resolutiondate")
li_FieldsWorkratio = loo_JsonResponse.IntOf("fields.workratio")
ls_FieldsWatchesSelf = loo_JsonResponse.StringOf("fields.watches.self")
li_FieldsWatchesWatchCount = loo_JsonResponse.IntOf("fields.watches.watchCount")
li_FieldsWatchesIsWatching = loo_JsonResponse.BoolOf("fields.watches.isWatching")
ls_FieldsLastViewed = loo_JsonResponse.StringOf("fields.lastViewed")
ls_FieldsCreated = loo_JsonResponse.StringOf("fields.created")
li_FieldsCustomfield_10022 = loo_JsonResponse.IsNullOf("fields.customfield_10022")
ls_FieldsCustomfield_10023 = loo_JsonResponse.StringOf("fields.customfield_10023")
ls_FieldsPrioritySelf = loo_JsonResponse.StringOf("fields.priority.self")
ls_FieldsPriorityIconUrl = loo_JsonResponse.StringOf("fields.priority.iconUrl")
ls_FieldsPriorityName = loo_JsonResponse.StringOf("fields.priority.name")
ls_FieldsPriorityId = loo_JsonResponse.StringOf("fields.priority.id")
ls_FieldsCustomfield_10024 = loo_JsonResponse.StringOf("fields.customfield_10024")
ls_FieldsCustomfield_10025 = loo_JsonResponse.StringOf("fields.customfield_10025")
ls_FieldsCustomfield_10026 = loo_JsonResponse.StringOf("fields.customfield_10026")
li_FieldsCustomfield_10017 = loo_JsonResponse.IsNullOf("fields.customfield_10017")
li_FieldsCustomfield_10018 = loo_JsonResponse.IsNullOf("fields.customfield_10018")
li_FieldsCustomfield_10019 = loo_JsonResponse.IntOf("fields.customfield_10019")
li_FieldsAggregatetimeoriginalestimate = loo_JsonResponse.IsNullOf("fields.aggregatetimeoriginalestimate")
li_FieldsTimeestimate = loo_JsonResponse.IsNullOf("fields.timeestimate")
ls_FieldsAssigneeSelf = loo_JsonResponse.StringOf("fields.assignee.self")
ls_FieldsAssigneeName = loo_JsonResponse.StringOf("fields.assignee.name")
ls_FieldsAssigneeKey = loo_JsonResponse.StringOf("fields.assignee.key")
ls_FieldsAssigneeAccountId = loo_JsonResponse.StringOf("fields.assignee.accountId")
ls_FieldsAssigneeEmailAddress = loo_JsonResponse.StringOf("fields.assignee.emailAddress")
ls_FieldsAssigneeAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.assignee.avatarUrls.48x48")
ls_FieldsAssigneeAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.assignee.avatarUrls.24x24")
ls_FieldsAssigneeAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.assignee.avatarUrls.16x16")
ls_FieldsAssigneeAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.assignee.avatarUrls.32x32")
ls_FieldsAssigneeDisplayName = loo_JsonResponse.StringOf("fields.assignee.displayName")
li_FieldsAssigneeActive = loo_JsonResponse.BoolOf("fields.assignee.active")
ls_FieldsAssigneeTimeZone = loo_JsonResponse.StringOf("fields.assignee.timeZone")
ls_FieldsUpdated = loo_JsonResponse.StringOf("fields.updated")
ls_FieldsStatusSelf = loo_JsonResponse.StringOf("fields.status.self")
ls_FieldsStatusDescription = loo_JsonResponse.StringOf("fields.status.description")
ls_FieldsStatusIconUrl = loo_JsonResponse.StringOf("fields.status.iconUrl")
ls_FieldsStatusName = loo_JsonResponse.StringOf("fields.status.name")
ls_FieldsStatusId = loo_JsonResponse.StringOf("fields.status.id")
ls_FieldsStatusStatusCategorySelf = loo_JsonResponse.StringOf("fields.status.statusCategory.self")
li_FieldsStatusStatusCategoryId = loo_JsonResponse.IntOf("fields.status.statusCategory.id")
ls_FieldsStatusStatusCategoryKey = loo_JsonResponse.StringOf("fields.status.statusCategory.key")
ls_FieldsStatusStatusCategoryColorName = loo_JsonResponse.StringOf("fields.status.statusCategory.colorName")
ls_FieldsStatusStatusCategoryName = loo_JsonResponse.StringOf("fields.status.statusCategory.name")
li_FieldsTimeoriginalestimate = loo_JsonResponse.IsNullOf("fields.timeoriginalestimate")
li_FieldsDescription = loo_JsonResponse.IsNullOf("fields.description")
ls_FieldsCustomfield_10011 = loo_JsonResponse.StringOf("fields.customfield_10011")
li_FieldsCustomfield_10012 = loo_JsonResponse.IsNullOf("fields.customfield_10012")
ls_FieldsCustomfield_10013 = loo_JsonResponse.StringOf("fields.customfield_10013")
li_FieldsCustomfield_10014 = loo_JsonResponse.IsNullOf("fields.customfield_10014")
li_FieldsCustomfield_10015 = loo_JsonResponse.IsNullOf("fields.customfield_10015")
li_FieldsSecurity = loo_JsonResponse.IsNullOf("fields.security")
li_FieldsCustomfield_10008 = loo_JsonResponse.IsNullOf("fields.customfield_10008")
li_FieldsAggregatetimeestimate = loo_JsonResponse.IsNullOf("fields.aggregatetimeestimate")
li_FieldsCustomfield_10009 = loo_JsonResponse.IsNullOf("fields.customfield_10009")
ls_FieldsSummary = loo_JsonResponse.StringOf("fields.summary")
ls_FieldsCreatorSelf = loo_JsonResponse.StringOf("fields.creator.self")
ls_FieldsCreatorName = loo_JsonResponse.StringOf("fields.creator.name")
ls_FieldsCreatorKey = loo_JsonResponse.StringOf("fields.creator.key")
ls_FieldsCreatorAccountId = loo_JsonResponse.StringOf("fields.creator.accountId")
ls_FieldsCreatorEmailAddress = loo_JsonResponse.StringOf("fields.creator.emailAddress")
ls_FieldsCreatorAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.creator.avatarUrls.48x48")
ls_FieldsCreatorAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.creator.avatarUrls.24x24")
ls_FieldsCreatorAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.creator.avatarUrls.16x16")
ls_FieldsCreatorAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.creator.avatarUrls.32x32")
ls_FieldsCreatorDisplayName = loo_JsonResponse.StringOf("fields.creator.displayName")
li_FieldsCreatorActive = loo_JsonResponse.BoolOf("fields.creator.active")
ls_FieldsCreatorTimeZone = loo_JsonResponse.StringOf("fields.creator.timeZone")
ls_FieldsReporterSelf = loo_JsonResponse.StringOf("fields.reporter.self")
ls_FieldsReporterName = loo_JsonResponse.StringOf("fields.reporter.name")
ls_FieldsReporterKey = loo_JsonResponse.StringOf("fields.reporter.key")
ls_FieldsReporterAccountId = loo_JsonResponse.StringOf("fields.reporter.accountId")
ls_FieldsReporterEmailAddress = loo_JsonResponse.StringOf("fields.reporter.emailAddress")
ls_FieldsReporterAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.reporter.avatarUrls.48x48")
ls_FieldsReporterAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.reporter.avatarUrls.24x24")
ls_FieldsReporterAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.reporter.avatarUrls.16x16")
ls_FieldsReporterAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.reporter.avatarUrls.32x32")
ls_FieldsReporterDisplayName = loo_JsonResponse.StringOf("fields.reporter.displayName")
li_FieldsReporterActive = loo_JsonResponse.BoolOf("fields.reporter.active")
ls_FieldsReporterTimeZone = loo_JsonResponse.StringOf("fields.reporter.timeZone")
ls_FieldsCustomfield_10000 = loo_JsonResponse.StringOf("fields.customfield_10000")
li_FieldsAggregateprogressProgress = loo_JsonResponse.IntOf("fields.aggregateprogress.progress")
li_FieldsAggregateprogressTotal = loo_JsonResponse.IntOf("fields.aggregateprogress.total")
li_FieldsCustomfield_10001 = loo_JsonResponse.IsNullOf("fields.customfield_10001")
li_FieldsCustomfield_10002 = loo_JsonResponse.IsNullOf("fields.customfield_10002")
ls_FieldsCustomfield_10003 = loo_JsonResponse.StringOf("fields.customfield_10003")
li_FieldsCustomfield_10004 = loo_JsonResponse.IsNullOf("fields.customfield_10004")
li_FieldsEnvironment = loo_JsonResponse.IsNullOf("fields.environment")
li_FieldsDuedate = loo_JsonResponse.IsNullOf("fields.duedate")
li_FieldsProgressProgress = loo_JsonResponse.IntOf("fields.progress.progress")
li_FieldsProgressTotal = loo_JsonResponse.IntOf("fields.progress.total")
ls_FieldsVotesSelf = loo_JsonResponse.StringOf("fields.votes.self")
li_FieldsVotesVotes = loo_JsonResponse.IntOf("fields.votes.votes")
li_FieldsVotesHasVoted = loo_JsonResponse.BoolOf("fields.votes.hasVoted")
li_FieldsCommentMaxResults = loo_JsonResponse.IntOf("fields.comment.maxResults")
li_FieldsCommentTotal = loo_JsonResponse.IntOf("fields.comment.total")
li_FieldsCommentStartAt = loo_JsonResponse.IntOf("fields.comment.startAt")
li_FieldsWorklogStartAt = loo_JsonResponse.IntOf("fields.worklog.startAt")
li_FieldsWorklogMaxResults = loo_JsonResponse.IntOf("fields.worklog.maxResults")
li_FieldsWorklogTotal = loo_JsonResponse.IntOf("fields.worklog.total")
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.fixVersions")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.labels")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.customfield_10016")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.versions")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.issuelinks")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.components")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.customfield_10010")
do while i < li_Count_i
    loo_JsonResponse.I = i
    ls_StrVal = loo_JsonResponse.StringOf("fields.customfield_10010[i]")
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.attachment")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.subtasks")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.comment.comments")
do while i < li_Count_i
    loo_JsonResponse.I = i
    ls_Self = loo_JsonResponse.StringOf("fields.comment.comments[i].self")
    ls_Id = loo_JsonResponse.StringOf("fields.comment.comments[i].id")
    ls_AuthorSelf = loo_JsonResponse.StringOf("fields.comment.comments[i].author.self")
    ls_AuthorName = loo_JsonResponse.StringOf("fields.comment.comments[i].author.name")
    ls_AuthorKey = loo_JsonResponse.StringOf("fields.comment.comments[i].author.key")
    ls_AuthorAccountId = loo_JsonResponse.StringOf("fields.comment.comments[i].author.accountId")
    ls_AuthorEmailAddress = loo_JsonResponse.StringOf("fields.comment.comments[i].author.emailAddress")
    ls_AuthorAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.comment.comments[i].author.avatarUrls.48x48")
    ls_AuthorAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.comment.comments[i].author.avatarUrls.24x24")
    ls_AuthorAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.comment.comments[i].author.avatarUrls.16x16")
    ls_AuthorAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.comment.comments[i].author.avatarUrls.32x32")
    ls_AuthorDisplayName = loo_JsonResponse.StringOf("fields.comment.comments[i].author.displayName")
    li_AuthorActive = loo_JsonResponse.BoolOf("fields.comment.comments[i].author.active")
    ls_AuthorTimeZone = loo_JsonResponse.StringOf("fields.comment.comments[i].author.timeZone")
    ls_Body = loo_JsonResponse.StringOf("fields.comment.comments[i].body")
    ls_UpdateAuthorSelf = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.self")
    ls_UpdateAuthorName = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.name")
    ls_UpdateAuthorKey = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.key")
    ls_UpdateAuthorAccountId = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.accountId")
    ls_UpdateAuthorEmailAddress = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.emailAddress")
    ls_UpdateAuthorAvatarUrls48x48 = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.avatarUrls.48x48")
    ls_UpdateAuthorAvatarUrls24x24 = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.avatarUrls.24x24")
    ls_UpdateAuthorAvatarUrls16x16 = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.avatarUrls.16x16")
    ls_UpdateAuthorAvatarUrls32x32 = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.avatarUrls.32x32")
    ls_UpdateAuthorDisplayName = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.displayName")
    li_UpdateAuthorActive = loo_JsonResponse.BoolOf("fields.comment.comments[i].updateAuthor.active")
    ls_UpdateAuthorTimeZone = loo_JsonResponse.StringOf("fields.comment.comments[i].updateAuthor.timeZone")
    ls_Created = loo_JsonResponse.StringOf("fields.comment.comments[i].created")
    ls_Updated = loo_JsonResponse.StringOf("fields.comment.comments[i].updated")
    i = i + 1
loop
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("fields.worklog.worklogs")
do while i < li_Count_i
    loo_JsonResponse.I = i
    i = i + 1
loop


destroy loo_Rest
destroy loo_SbResponseBody
destroy loo_JsonResponse

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": [
      ]
    }
  }
}