Hi everyone,
I’m looking to create an automation in Jira that automatically updates labels based on the value of the Capability field. Here’s the goal:
- Check if a label matching the pattern
"|Capability" already exists. If it does, remove it. - Add a new label reflecting the value of the Capability field.
- It's also important that the labels have no spaces in between the letters so it should be : |CapabilityAsset/OT and not |Capability Assset/OT
For example:
- If the Capability field is set to
Data Analytics, the label |CapabilityDataAnalytics should be added. - If Capability is set to
Asset/Assetbetrieb, the label |CapabilityAssetBetrieb should be added.
Its important
This logic should work for the following Capability values:
- Asset/Assetbetrieb
- Asset/Asseterrichtung
- Asset/Assetmanagement&-planung
- Asset/HSSE, FM
- Asset/OT
- Asset/Verfahren
- Cross Functions/Cyber Security
- Cross Functions/Digitaler Arbeitsplatz
- Cross Functions/Governance
- Cross Functions/IT
- Cross Functions/Kommunikation
- Cross Functions/Personal
- Cross Functions/Projektmanagement
- Cross Functions/Recht
- Cross Functions/Stakeholder Management
- Data Analytics
- Energiesystem/Operative Energiewirtschaft
- Energiesystem/Systemanalyse
- Energiesystem/Systembetrieb
- Energiesystem/Systementwicklung
- Energiesystem/Systemmanagement
- Energiesystem/Veröffentlichung
- Finance
- Netzanlagendatenmanagement/GIS
- Netzanlagendatenmanagement/Netzmodelle
- Netzanlagendatenmanagement/Stammdaten
I’d like to achieve this using Jira Automation, but I’m also open to solutions using the REST API.
Any advice, ideas, or examples would be greatly appreciated! 😊