Describe the bug
Toggl entries like ABCD-1234 will cause the script to crash because it expects a description on the right-hand side of the split string, but this causes the right-hand side to be NULL.
Create an entry like the above in Toggl and sync it.
Run the script with a --start option that includes the date of the Toggl entry.
Expected behavior
Script runs and entries are synced. If there is no ABCD-1234 issue in JIRA, the script still syncs other time logs.
Additional context
I was able to work around this by just editing the Toggl entries that caused it. I'm thinking a good solution would be an additional configuration option to specify which projects should be synced. Alternatively, the script could query JIRA to check which projects at the configured URL the user actually has access to (and their issue prefixes) and then discard any non-matching time logs. I might try to do this if I keep bumping up against this. Thought to just file a bug report for now.
Describe the bug Toggl entries like ABCD-1234 will cause the script to crash because it expects a description on the right-hand side of the split string, but this causes the right-hand side to be
NULL
.To Reproduce Steps to reproduce the behavior:
--start
option that includes the date of the Toggl entry.Expected behavior Script runs and entries are synced. If there is no ABCD-1234 issue in JIRA, the script still syncs other time logs.
Additional context I was able to work around this by just editing the Toggl entries that caused it. I'm thinking a good solution would be an additional configuration option to specify which projects should be synced. Alternatively, the script could query JIRA to check which projects at the configured URL the user actually has access to (and their issue prefixes) and then discard any non-matching time logs. I might try to do this if I keep bumping up against this. Thought to just file a bug report for now.