Skip to content
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

[Bug][Jira] start_date Field Empty in sprint Table After Upgrading DevLake from 0.21 to 1.0 with Jira Plugin #8221

Closed
3 tasks done
narrowizard opened this issue Nov 26, 2024 · 0 comments · Fixed by #8222
Closed
3 tasks done
Labels
component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug

Comments

@narrowizard
Copy link
Collaborator

Search before asking

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

What happened

After upgrading DevLake from version 0.21 to 1.0 and using the Jira plugin to collect data, we observed that the start_date field in the sprint table is empty.

What do you expect to happen

The start_date field in the sprint table should be populated with the correct values retrieved from the Jira API.

How to reproduce

  • Using DevLake version 1.0.
  • Set up the Jira plugin to collect data.
  • Use Jira Server version 7.12.3 as the data source.
  • Check the sprint table in the DevLake database and note that the start_date field is empty.
  • Verify the following tables for data consistency:
    • _tool_jira_sprints: The start_date field is also empty here.
    • _raw_jira_api_sprints: The API response includes the start_date field with valid values.

Anything else

Retrieve logic works in 0.21:

if s.ActivatedDate != nil {
sprint.StartDate = s.ActivatedDate
}

But it not works in 1.0:
// jira cloud
if !isServer {
sprint.StartDate = s.StartDate
}
// jira server
if isServer && s.ActivatedDate != nil {
sprint.StartDate = s.ActivatedDate
}

Seems that some version of jira server returns StartDate instead of ActivatedDate.
Snapshot of raw data:
image

Version

release-v1.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@narrowizard narrowizard added the type/bug This issue is a bug label Nov 26, 2024
@dosubot dosubot bot added component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux labels Nov 26, 2024
narrowizard added a commit that referenced this issue Nov 26, 2024
[Bug][Jira] start_date Field Empty in sprint Table After Upgrading DevLake from 0.21 to 1.0 with Jira Plugin #8221
@narrowizard narrowizard linked a pull request Nov 26, 2024 that will close this issue
d4x1 pushed a commit that referenced this issue Nov 26, 2024
[Bug][Jira] start_date Field Empty in sprint Table After Upgrading DevLake from 0.21 to 1.0 with Jira Plugin #8221
github-actions bot pushed a commit that referenced this issue Nov 26, 2024
[Bug][Jira] start_date Field Empty in sprint Table After Upgrading DevLake from 0.21 to 1.0 with Jira Plugin #8221
narrowizard added a commit that referenced this issue Nov 26, 2024
[Bug][Jira] start_date Field Empty in sprint Table After Upgrading DevLake from 0.21 to 1.0 with Jira Plugin #8221

Co-authored-by: NaRro <cong.wang@merico.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant