You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware that a similar question has been asked before, however the response was to use the following: jira.search_issues(jql, fields="comment, the other fields" ... )
I would like to retrieve ALL the fields + the comments. At runtime, my script does not know all the fields, so I cannot use the aforementioned workaround.
A workaround that I have considered is to send a small query with maxResults:1 and without the fields="comment" parameter to the search_issues(...) function. This will allow me to obtain all of the keys of the values within the fields parameter. I could then join them into a single string, and append ",comment" to it, and make my future requests with this new string as the fields parameter as such:
However, this feels like a workaround. Would it be possible to add some parameter includeComments=True within the search_issues function to do this automatically?
Is there an existing issue for this?
I have searched the existing issues
Jira Instance type
Jira Server or Data Center (Self-hosted)
Jira instance version
8.14.0
jira-python version
main
Python Interpreter version
3.8
Which operating systems have you used?
Linux
macOS
Windows
Reproduction steps
# 1. Call search_issues(...) without specifying fields paramter# 2. Observe that the result does not include the comments field# 3. That's the issue
Stack trace
nonereally
Expected behaviour
Comments to be included, since the documentation says that omitting the fields parameter will return all the available fields.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
The link above is the documentation of the rest API, not the Python Jira Module, however it gives the desired result, as it returns all the fields and the comments too. So perhaps what was actually required is an update to the Jira Python module documentation (https://jira.readthedocs.io/api.html?highlight=search_issues#jira.client.JIRA.search_issues) to mention this functionality?
Bug summary
I am aware that a similar question has been asked before, however the response was to use the following:
jira.search_issues(jql, fields="comment, the other fields" ... )
I would like to retrieve ALL the fields + the comments. At runtime, my script does not know all the fields, so I cannot use the aforementioned workaround.
A workaround that I have considered is to send a small query with
maxResults:1
and without thefields="comment"
parameter to thesearch_issues(...)
function. This will allow me to obtain all of the keys of the values within thefields
parameter. I could then join them into a single string, and append ",comment" to it, and make my future requests with this new string as the fields parameter as such:However, this feels like a workaround. Would it be possible to add some parameter
includeComments=True
within thesearch_issues
function to do this automatically?Is there an existing issue for this?
Jira Instance type
Jira Server or Data Center (Self-hosted)
Jira instance version
8.14.0
jira-python version
main
Python Interpreter version
3.8
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
Comments to be included, since the documentation says that omitting the fields parameter will return all the available fields.
Additional Context
No response
The text was updated successfully, but these errors were encountered: