[Feature][Jira] Extend support for type mapping #8251
Labels
component/plugins
This issue or PR relates to plugins
improvement
type/feature-request
This issue is a proposal for something new
Search before asking
Use case
As a solutions architect I want to use DevLake to measure DORA and other metrics within established organizations who may be unwilling, or unable, to change their current Jira setups to conform to DevLake's limited type mappings.
Description
In our large multi-vendor environment, DevLake's current Jira plugin has a limitation that prevents us from fully adopting it for DORA metrics. Specifically, we need to distinguish between
Bug
andIncident
issues that share the same Jira type but are differentiated by labels (e.g.,severity/p0
). The existing plugin doesn't support this label-based differentiation, and the workaround proposed in #4217 doesn't scale for enterprise use cases.After evaluating various approaches to implement ticket type + label combination mapping while maintaining backwards compatibility, I propose introducing GopherLua for custom user scripting. I have developed a working proof of concept that demonstrates this approach. The solution allows DevLake to handle sophisticated issue mapping rules while maintaining the simplicity of the current system for basic use cases. An example script I am using:
While the introduction of GopherLua is a significant change, I believe the benefits of this approach outweigh the negatives:
Related issues
#4217
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: