incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Jira] Worklogs are not always imported completely

Open richard-fletcher opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

It seems that Worklogs are not always imported completely. In many cases, I see only the first page of Worklogs collected (20 items). I think that the expectations of this logic may not be met when the Worklogs are extracted from the Issue:

https://github.com/apache/incubator-devlake/blob/main/backend/plugins/jira/tasks/worklog_collector.go#L72

Additionally, I see cases where Epics have no Worklogs. I suspect that this may be due to the order of Tasks where Worklogs are extracted before Epics are collected. This is just a guess however.

What do you expect to happen

All worklogs are imported from issues.

How to reproduce

  • Attempt to import an Issue with more than 20 Worklogs.

Anything else

No response

Version

v0.21.0-beta5

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

richard-fletcher avatar Feb 25 '24 17:02 richard-fletcher

This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Apr 26 '24 00:04 github-actions[bot]

Sorry for the late reply, will look into it ASAP

klesh avatar Apr 26 '24 03:04 klesh