You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I currently have several rules that add components based on keywords in the issue summary. Rather than having 10 rules that have to be maintained, I'd like to combine them into one. Outside of a ton of branches, is there a way to loop through a lookup table that has the keyword > component mapping? Also open to other ways to combine these automations.
Hi @JM Hoskinson -- Welcome to the Atlassian Community!
There are several ways to solve this, and with the changes to the packaging model / limits for automation rules, combining rules seems a good idea: https://community.atlassian.com/t5/Automation-articles/Introducing-our-new-packaging-model-for-Jira-Cloud-Automation/ba-p/2446099
One efficient way to do this is to add all of the components at one time, using advanced edit with JSON: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Components
You could parse your summary, using either the Lookup Table you describe, or smart value, conditional expressions, build up the JSON, and make one edit.
These JSON functions for text fields may also help to do that: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-json-functions/
Yup, that is where the JSON method helps. You can build a single expression to add them all at once.
Without knowing your "decoder ring" to map the keyword values in the summary to the components, I expect the tricky part may be building the expression.
If you share some examples of your keywords and the corresponding components, I can probably help with that. For example...
IF summary contains "blue" THEN add component "color".