I am using Python requests module to query for a bunch of tickets using JQL.
I want to limit the fields being returned by specifying the "fields" parameter. When I try to use a custom field name with space in the "fields" parameter, Jira does not return the field.
The code I am using is as below
fields = ["summary", "Branch Name"]
data = { 'jql': <jql_query>, 'startAt': 0, 'maxResults': 10, fields=fields }
# session is a Python requests object.
session.post(f"{JIRA_REST}/search", data=json.dumps(data))
The response does not include the "Branch Name" field.
Can anyone let me know how to pass in the field name so that it is returned in the response?
Thanks.