Nothing that I know of. AFAIK, comments are comments are comments and have been so since the day Jira Cloud was released.
I get the same results no matter how old the Project is or the age of the Issues within it. If an Issue has no Comments, then the value of the total
object is 0
and the comments
object is an empty array, exactly as you’ve shown in your example and exactly as expected.
POST: https://{{Instance}}/rest/api/3/search/jql
Request body:
{
"jql": "key = BPT-226", <-- An issue initially created 5 years ago, with no Comments
"fields": ["comment"]
}
Response body:
{
"issues": [
{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "10294",
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294",
"key": "BPT-226",
"fields": {
"comment": {
"comments": [], <-- Empty array because the Issue has zero comments
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294/comment",
"maxResults": 0,
"total": 0, <-- Confirmation there are zero comments in this Issue
"startAt": 0
}
}
}
]
}
If I add two Comments to that Issue and execute the same request, the response changes and the value of the total
object is 2
and the comments
object contains the array of two comments, exactly as expected:
{
"issues": [
{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "10294",
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294",
"key": "BPT-226",
"fields": {
"comment": {
"comments": [
{
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294/comment/10237",
"id": "10237",
"author": {
"self": "https://solidinterface.atlassian.net/rest/api/3/user?accountId=557058%3A943a10c8-0495-4019-93b0-45cf469445fb",
"accountId": "557058:943a10c8-0495-4019-93b0-45cf469445fb",
"emailAddress": "sunnyape@gmail.com",
"displayName": "David Bakkers",
"active": true,
"timeZone": "Australia/Sydney",
"accountType": "atlassian"
},
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Comment #1"
}
]
}
]
},
"updateAuthor": {
"self": "https://solidinterface.atlassian.net/rest/api/3/user?accountId=557058%3A943a10c8-0495-4019-93b0-45cf469445fb",
"accountId": "557058:943a10c8-0495-4019-93b0-45cf469445fb",
"emailAddress": "sunnyape@gmail.com",
},
"displayName": "David Bakkers",
"active": true,
"timeZone": "Australia/Sydney",
"accountType": "atlassian"
},
"created": "2025-03-03T16:19:00.240+1100",
"updated": "2025-03-03T16:19:00.240+1100",
"jsdPublic": true
},
{
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294/comment/10238",
"id": "10238",
"author": {
"self": "https://solidinterface.atlassian.net/rest/api/3/user?accountId=557058%3A943a10c8-0495-4019-93b0-45cf469445fb",
"accountId": "557058:943a10c8-0495-4019-93b0-45cf469445fb",
"emailAddress": "sunnyape@gmail.com",
"displayName": "David Bakkers",
"active": true,
"timeZone": "Australia/Sydney",
"accountType": "atlassian"
},
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Comment #2"
}
]
}
]
},
"updateAuthor": {
"self": "https://solidinterface.atlassian.net/rest/api/3/user?accountId=557058%3A943a10c8-0495-4019-93b0-45cf469445fb",
"accountId": "557058:943a10c8-0495-4019-93b0-45cf469445fb",
"emailAddress": "sunnyape@gmail.com",
"displayName": "David Bakkers",
"active": true,
"timeZone": "Australia/Sydney",
"accountType": "atlassian"
},
"created": "2025-03-03T16:19:07.214+1100",
"updated": "2025-03-03T16:19:07.214+1100",
"jsdPublic": true
}
],
"self": "https://solidinterface.atlassian.net/rest/api/3/issue/10294/comment",
"maxResults": 2,
"total": 2,
"startAt": 0
}
}
}
]
}
I recommend that you have a peer double-check your work and, if you can both replicate the same issue, I suggest you open a support request.
Have fun