roadie-backstage-plugins
roadie-backstage-plugins copied to clipboard
[jira-plugin] Add support for multiple JIRA labels
Feature Suggestion
I would like the jira/label
annotation to support multiple labels instead of single label.
I suggest to do this by allowing space characters as separators (it is not possible to use lists in annotation values, only strings are allowed). As spaces are not allowed as label characters, this does not break any existing functionality.
Possible Implementation
In essence, the implementation requires changing the label filters from "equals" to "has (one of)".
Context
In our setup, we have JIRA projects that each serve multiple systems and components (Backstage system and component entities).
The components in such a project can often be characterised by a single JIRA label. This can be represented by a jira/project-key
and jira/label
annotation.
However, the systems often contain multiple components, and as such can be characterised by the combination of the component's JIRA labels. This cannot be represented by a jira/project-key
and jira/label
annotation, as only single labels are supported. So the only choice is to leave out the jira/label
annotation, which is not accurate.
As a workaround, we could use JIRA components to identify systems. However, this requires us to use both JIRA components and JIRA labels, which increases the maintenance burden and requires more discipline to keep sync. Also, in our setup, JIRA components are used mainly for billing purposes, not for logical divison.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.