Skip to content

Cant get JQL data with #1632

@JonathanSmartrak

Description

@JonathanSmartrak

Hello,

I can get things like customFields and projects with the functions.

  • projects()
  • get_custom_fields()

However I get no custom fields when trying

  • get_all_fields (I get no custom fields)

And blank data when trying

  • enhanced_jql()
  • jql()

Any ideas

eg
session = requests.Session()

jira_cloud = Jira( url=jiraServer,
username=jiraUsername,
password=jiraPassword,
cloud=True,
session=session)

JQL = 'created >= -30d order by created DESC'

issues = []
isLast = False
nextPageToken = None

while not isLast:
response = jira_cloud.enhanced_jql(JQL, fields="Summary, Description", nextPageToken=nextPageToken, expand='names')

issues.extend(response.get('issues'))
isLast = response.get('isLast')
if not isLast:
    nextPageToken = response.get('nextPageToken')

print("response: ",response)

Output
response: {'issues': [], 'isLast': True}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions