Google Workspace offers a very powerful action called Assign Issue Approver from Group Manager/Owner, which allows you to assign one or more approver from a Group's Manager, Owner, or both!
The configuration for this action looks like this:
Lets discuss the different parameters required to set up this action.
From Group: This is the group from which the Owners or Managers will be retrieved to be used as approvers. You can cherry pick the group from a list of groups, enter the ID of the group, or retrieve the value from a Portal Field.
Role: The role of the group's members we will use as approvers. You can select Owners, Managers, or both.
Issue Field: The Jira Issue field where the approver will be set. By default, Jira calls this field Approvers.
As an example, lets configure this action to use the group defined in a Google's Workspace portal field, Owners and Managers, and the default Approvers field.
The portal field has been previously configured as follows:
Now save the action and let's take it for a run. When opening the Get It Help screen, we are welcomed with a form including the created portal field. Let's select the Legal group.
In Google Workspace, this test group is assigned two members:
Now lets trigger the configured Post Function. Once is has ran, we can see the results as an issue's comment:
And we can see the approvers have been indeed been assigned:
It is important to note that the managers in Google's Workspace will need to exist in Jira with the same email address.
Now that you have an Post Function to add the manager/owner of a group as an approver, the next step could be assigning the requestor of the issue to the group, by using the Add User To Group action after approval has taken place!
This feature is currently available only for Google Workspace, but it will be coming to our other integrations soon, stay tuned!