G’day Jira Service Management Community!
My name is Christopher, and I’m an Engineering Manager on the Jira Service Management team.
We recently announced group approvals in Jira Service Management Cloud to support the ability to request approval from groups – not just individual users. Now we’re giving you even more flexibility by extending the same approval criterion to multiple source types.
Today, I’m excited to walk you through how you can now use automation to populate the 'Approver groups' field with values from an Insight object schema. Learn more about Insight object schemas.
This guide is for Jira administrators aiming to use Insight as their group approval source, with:
Jira Service Management Cloud (Premium or Enterprise plan), and;
Some familiarity with Insight configuration, Jira automation, and approvals set up.
In this guide, I’ll walk you through how to:
Create an Insight object schema with objects. Learn more about Insight object schemas and objects.
Create an Insight objects field. Learn more about the Insight objects field.
Add the field to screen during field creation.
Configure the field with Insight object field configuration.
Set up approvals on a workflow status. Learn how to set up approvals.
Identify the field id used in the workflow approval configuration.
Add the Insight objects field to the customer portal (optional).
Configure Jira automation to populate approvers based on selected software. Learn more about automation.
Test by raising a request in the customer portal.
Without further ado, let’s dive in!
To help bring this to life, we’ll use the example of adding “Service cost center” group approvers to grant a customer’s request to access software. |
An object type called Service cost center is created to represents a cost center in the organization.
The Service cost center object type has an attribute named Approvers of type group, that is used to store the group(s) associated with the cost center. The cardinality of the Approvers attribute has been updated to support multiple groups (optional). Learn more about cardinality.
An object type Software is configured to represent the software being requested, this is the selection the help seeker would perform.
The Software object type has an attribute Service cost center that is using the Service cost center object type as the attribute type.
New to Insight? Learn how to get started with Insight in Jira Service Management.
This table shows the list of sample data contained within the schema.
Software (objects) | Service cost center (objects) | Approvers (groups) |
Jira Work Management |
Productivity tools |
prt-group |
Jira Service Management |
ts-group |
|
Jira Software |
Developer tools |
administrators |
Bitbucket |
||
Opsgenie |
||
Statuspage |
||
Trello |
Financial services |
cab
|
An Insight objects field is populated by the agent or help seeker with the selected software that they are requesting access to. Learn how to set up the Insight objects field.
To make the field visible to users, add the field to the screens during field creation.
The Insight objects field is configured to source its data from an Insight object schema. The schema is used to populate the values in the Insight objects field. Learn more about Insight object schemas.
Configure the Insight object field to populate the values from the Insight object schema on the ‘Insight objects’ field.
Note: The custom field ID next to the field name customfield_10066 – this will be used later in the Jira automation configuration.
In this example, we are picking the Approver groups field and requiring one approval from each group. Learn how to set up approvals.
In order to configure Jira automation to populate the Approver groups field, the custom field ID needs to be identified first.
Locate the custom field, and select Edit details.
The details view will load for the custom field.
Note the id=10063 in the URL in your browser – the custom field id is customfield_10063
(keep this value for configuring Jira automation).
In order for the customer to select the Software, the Insight field needs to be visible on the portal request. Learn how to customize the fields of a request type.
Jira automation is used to identify the Service cost center for the selected software and then populate the Approver groups field with the Service cost center's Approvers groups. Learn how to automate your Jira Cloud processes and workflows.
Configure any trigger point of your choosing. In this example, we used a workflow transition.
Add an Insight action to lookup objects.
IQL has been configured to lookup all objects selected on the software field customfield_10066
. Learn more about Insight Query Language (IQL).
Key in ({{customfield_10066}}) |
Next, add another action to update the Approver groups field on the request (Jira issue), using the Edit Issue automation action.
The provided Approvers group field with ID customfield_10063
is populated with the values from the lookup objects.
Note the path of the lookup traverses the path from the Software object to the Service cost center object, then using the Approvers group attribute configured to contain multiple groups.
{ "fields": { "customfield_10063": [ { "name": "{{#lookupObjects.Service cost center.Approvers}}{{name}}{{/}}" } ] } } |
View the request and perform the transition to enter it into the status that requires approval.
Notice the Approvals needed message after the rule was triggered. This is because the Approver groups field was populated via Jira automation.
Three approvals are required, one from each group, as configured during workflow approvals configuration.
And voilà! You’ve used Jira automation to use the associated group on an Insight object as an approval source.
In the comments below, please let us know if this content is helpful, and feel free to share any approval tips or best practices.
Cheers,
Christopher
Christopher
5 comments