Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I need to create a automation to auto assign name to get approval

Gunasundri Subramaniam January 6, 2024

I want to create an automation rule for access requests to assign the approver name based on the service owner's name. The notification email is sent to the service owner either to Approve/Reject. Kindly advise, how I can create this rule in JSM.

4 answers

1 vote
Kavitha Chandrasekaran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 7, 2024

Screen Shot 2024-01-07 at 8.49.35 pm.png

Gunasundri Subramaniam January 9, 2024

Hello Kavitha, I appreciate your guidance. Once we assign the issue to a specific person, can this user Approve/Decline the request? Could you please explain how this approval flow functions? I apologize for the inconvenience; it's my first time using Jira Service Management and automation configuration. Your patience is highly valued

0 votes
Rick Westbrock February 8, 2024

I am not sure how you have an individual set as the service owner because the Service Owners attribute of the Service object type in the Services schema in Assets is a group attribute, not a user attribute.

That being said you should be able to accomplish this without using components because you can use a Lookup Objects action in the rule to find the matching service name in the Service object type mentioned above. Once you have found the object then you can set the Approvers field to {{lookupObjects."Service Owners"}} or {{lookupObjects."Change Approvers"}} but the Change Approvers attribute is also a group attribute (not user).

0 votes
Kavitha Chandrasekaran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 7, 2024

@Gunasundri Subramaniam To make it simpler, you can use component as a service and assign component lead as the service owner name and at the project level, you can set the default assignee to component lead. In that way, you do not need to even write an automation rule.. keeping it simple and maintainable. 

0 votes
Kavitha Chandrasekaran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 7, 2024

@Gunasundri Subramaniam Assuming you are capturing service name in some field, you can use smart values to compare the service name and use the service owner name as assignee. If there are 10 services, you will need to write multiple if conditions. 

 

In this example I have used component name. Based on the value of component, the automation that gets triggers when an issue is created will assign to particular person. Hope this helps. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events