Skip to content

Task importer for inactive tasks #11

@creadivteam

Description

@creadivteam

There was a fatal crash while importing the tasks.
See below:
2019-08-11 21:55:12,251 - INFO - Clue - adding xxx, project: yyyy (394 of 5883)
Traceback (most recent call last):
File "toggl2clockify.py", line 274, in
File "Clue.py", line 387, in syncEntries
File "TogglAPI.py", line 154, in getReports
File "TogglAPI.py", line 190, in _getReports
File "Clue.py", line 363, in onNewReports
File "ClockifyAPI.py", line 664, in addEntry
File "ClockifyAPI.py", line 279, in getTaskIdFromTasks
RuntimeError: Task zzzz not found.
[9896] Failed to execute script toggl2clockify

After reviewing the log and checking the workspaces. There are two issues:

the inactive (past) tasks are not imported - I checked the Toggl API and it should return all tasks (it returns a field called "active" which is a bool)
the script can do some validation before trying to write data to Clockify (or some try / catch statements or just continue even if a 400 status was reported by the api - I am not sure how it works)

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