Skip to content

Invalid parameter name "from" in the Jira.tempo_4_timesheets_find_worklogs method #1273

Closed
@anttipalsola

Description

@anttipalsola

The parameter name from in the Jira.tempo_4_timesheets_find_worklogs method call (atlassian/jira.py:4118) causes a syntax error because from is a keyword in Python and thus cannot be used as parameter name:

>>> from atlassian import Jira
>>> j = Jira('https://localhost/')
>>> j.tempo_4_timesheets_find_worklogs(from='2023-01-01', to='2023-12-31')
  File "<stdin>", line 1
    j.tempo_4_timesheets_find_worklogs(from='2023-01-01', to='2023-12-31')
                                       ^^^^
SyntaxError: invalid syntax

The parameter needs to be renamed.

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