Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug][Jira] issue_convertor Overwrites Mapped Issue Type with SUBTASK #8319

Closed
3 tasks done
narrowizard opened this issue Mar 6, 2025 · 0 comments · Fixed by #8322
Closed
3 tasks done

[Bug][Jira] issue_convertor Overwrites Mapped Issue Type with SUBTASK #8319

narrowizard opened this issue Mar 6, 2025 · 0 comments · Fixed by #8322
Assignees
Labels
component/plugins This issue or PR relates to plugins 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

In the Jira plugin, the issue_convertor logic sets the issue type of subtasks to SUBTASK by default.

if jiraIssue.Subtask {
issue.Type = ticket.SUBTASK
}

However, if an issue type mapping rule is configured, the mapped issue type is still overwritten by SUBTASK, which does not match the expected behavior.

What do you expect to happen

When an issue type mapping rule is configured, the mapped issue type should be retained and not be overwritten by SUBTASK. The issue type for subtasks should only be set to SUBTASK when no mapping rule is specified.

How to reproduce

  1. Configure Apache DevLake to collect data from Jira.
  2. Set up an issue type mapping rule to map a specific subtask issue type to another value.
  3. Run data extraction and observe the transformed data in the domain layer.
  4. Notice that the issue type of subtasks is always set to SUBTASK, ignoring the mapping rule.

Anything else

No response

Version

release-v1.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
component/plugins This issue or PR relates to plugins type/bug This issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant