-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apparently in some cases tempo returns None as worklogid #22
Comments
trying to update the issue seems to also solve the problem though ;) |
So one of the IDs is initially missing, but a following request gets both? We cannot choose the other ID for this reason, since it will duplicate worklogs on a rerun. I don't see any other solution than skipping the worklog with a warning and optionally retrying. |
Do not exit when can't read worklogid, but notify to output. refs #22
the issue was with the additional worklog in desitination jira. Apparently tempo stored the worklog but I think it failed to push it to the jira itself, hence the lack of the jiraWorklogID. while fixing, I updated the worklog, and the jiraWorklogID appeared. I think that if we run sync through tempo, we can safely require the tempo id ( https://tempo-io.github.io/tempo-api-docs/#worklogs ) the tempoWorklogId is required. Jira's is not. |
Yes: if only jiraWorklogID is missing and it's not currently used, then it's ok to not require it. |
When I observed this issue, the Jira ID did not reappear, but I always synchronize only the current day. My current workaround:
Since there is a potential case of worklog duplication, I think this might need an option for the user to choose which one to use. |
This still occurs, at least when I use Censored output message:
Rerunning the script makes it succeed. Tempo now has a new API, version 4.0, that "solves" this by not including the Jira worklog ID: https://help.tempo.io/cloud/en/tempo-timesheets/developing-with-tempo/tempo-api-version-4-0-vs--version-3-0--a-comparison.html. I think the correct solution is to migrate to Tempo worklog IDs. |
What action do you want to perform
Migrate worklogs to from source jira to destination
What are the results
Fails on exception when reading data from destiantion jira (no worklog id)
What are the expected results
Dat ais migrated. Apparently we've got either jiraWorklogid OR tempoWorklogID we could require one or the other. Plus, destination ought to have all required data for confirmation within worklog message.
The text was updated successfully, but these errors were encountered: