Hi everyone,
I have an automation that is triggered when an issue of type "Initiative" is created. Its goal is to populate a custom field "Squads contributing" based on the group the reporter belongs to.
Current Setup:
- The automation checks sequentially if the reporter belongs to one of the 40 predefined squads.
- If a match is found, the "Squads contributing" field is updated with the corresponding squad.
- If no match is found, the automation moves to the next condition.
You can see an excerpt in the attached screenshot.

Challenges:
High Maintenance:
- If a squad is renamed or a new one is added, the automation needs to be updated manually.
- This is time-consuming, especially with 40 squads currently configured.
Technical Limitations:
- Due to the 65-component limit per automation, the setup had to be split into three separate automations. This adds even more complexity.
Question:
Is there a simpler or more efficient way to handle this use case? For example:
- A more dynamic structure to map the squads?
- An integration or script that could automatically retrieve the reporter's group membership?
I don’t have ScriptRunner in my environment, so solutions need to rely on standard Jira automations or feasible alternatives within this scope.
Thank you in advance for your help and ideas!