swingbit / jira2gitlab

Migrate Jira projects into a Gitlab instance
MIT License
20 stars 11 forks source link

Support for Epics #27

Open fraenki opened 5 months ago

fraenki commented 5 months ago

The README currently states that support for (real) Epics is missing:

Epics are currently translated to normal issues and loosely coupled via labels with their child issues
TODO: traslate them into Gitlab epics (only Gitlab Premium)

Ideally this feature would be configurable to support both GitLab OSS and GitLab Premium. When using GitLab OSS, it would use the current functionality and migrate Epics to normal issues. But with GitLab Premium it would use native Epics instead.

Are there any plans to add this functionality? Are there any known issues that prevent this feature from being added?

ptbuchanan21 commented 5 months ago

I believe this would be added in the customfield section, found in the config file. But I could be wrong, I am still trying to figure out the metadata within the customfield section.

swingbit commented 5 months ago

For non-Premium Gitlab, epics (ans stories etc)are translated to normal issues indeed.

These configuration options should point at the right Jira fields:

# the Jira Epic custom field
JIRA_EPIC_FIELD = 'customfield_10103'

# the Jira Sprints custom field
JIRA_SPRINT_FIELD = 'customfield_10340'

# the Jira story points custom field
JIRA_STORY_POINTS_FIELD = 'customfield_10002'

For Premium Gitlab, I haven't had the time to implement that yet. One of the problems there is that epics in Gitlab only exist at the group level, not at the project level.