I’m working in Java with Axios to call Jira’s API. While I successfully retrieve epics, the comments field is missing. For example:
jiraClient(3)
.requestData(`project = ${projId} AND type = Epic`)
.then((result) => {
let epicArray = result.data.map(item => ({ identifier: item.id, title: item.summary }));
});
I encountered a similar issue a while back when retrieving data from Jira. The problem was that the API returns only a set of default fields unless you specify otherwise. I solved it by modifying my API request to include the additional field explicitly. In my case, appending the fields parameter with a comma-separated list of necessary fields such as comments worked perfectly. It took a bit of trial and error to figure out the exact syntax and correct field names, but once I adjusted the query, the complete data was returned as expected.
hey, i fixed a similar issue by explicitely adding fields to the api call (fields=summary,comments). sometimes it’s also permission related. hope this trks you in the right direction, cheers!
The missing comments field is likely because it is not included in the default fields returned by the Jira API. In my experience, when working with Jira’s API, you have to specify explicitly what additional fields to be returned along with the standard ones. Adjusting the API query or using the fields parameter can provide the information you need. I found that reading the official documentation and experimenting with custom JQL queries helped me understand how to include missing data such as the comments field.
I encountered this issue primarily because Jira’s API doesn’t return all fields by default. In my case, rather than solely relying on the fields parameter, I found that using the expand parameter helped include additional details such as comments. By appending expand=comments to the API request, the comments field was successfully retrieved. It’s important to closely consult Jira’s documentation as some values might require case-specific tweaks and permission checks, which can occasionally be the underlying cause if certain fields don’t appear in the response.
I experienced a similar challenge while integrating Jira’s API in a Java project. The issue seemed to stem from the default fields returned by the API, which did not include the comments field. To resolve this, I modified my API request to explicitly specify the needed fields, ensuring comments were part of the response. Additionally, I verified that my account had the proper permissions to access all the required data. This approach not only solved the problem but also provided a clearer understanding of how Jira manages field data.