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:
Challenges:
High Maintenance:
Technical Limitations:
Question:
Is there a simpler or more efficient way to handle this use case? For example:
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!
I recommend using a Lookup Table for such mapping scenarios: https://community.atlassian.com/t5/Automation-articles/Update-Create-lookup-table-action-improvements/ba-p/2427798
The rule could first call the REST API endpoint with the Send Web Request action to get all the groups the user is in: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-groups-get
With that, your rule would reduce to only a few steps rather than conditions for each group:
Maintenance is easier and isolated to updates to the lookup table.
What do you want to do if there is no match to the Reporter?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.