Skip to content

'Jira' object has no attribute 'enhanced_jql' #1631

@PeschykhinLev

Description

@PeschykhinLev
BaseHookConnection = BaseHook.get_connection(JIRA_CONNECTION_NAME)
jira = Jira(
    url=BaseHookConnection.host,
    username=BaseHookConnection.login,
    password=BaseHookConnection.password,
    cloud=True,
    backoff_and_retry=True,
)
result = jira.enhanced_jql(
    jql=f'project = "{project["project_name"]}" AND updated >= "{last_uploaded_project_issue}" ORDER BY key DESC',
    limit=100,
    nextPageToken=next_page_token,
)

Started receiving a transactional error when calling enhanced_jql, which is very weird.

Replacing it with:
params = {"jql": query, "maxResults": 100, "fields": "*all"}
if next_page_token:
    params["nextPageToken"] = next_page_token
result = jira.get(jira.resource_url("search/jql"), params=params)

helped, but the root cause is unknown. Does anyone know the root cause?

I have: "atlassian-python-api~=4.0.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions