Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain Approver from an Asset for a Service Request

Jesse Ortega Jr
Contributor
May 2, 2025

In our Assets we have a list of applications that have a business ower. I would like to pull the business owner from the application and use that for the approval in the a service request. I have tried adding the approver via automation but have had no luck. Is this possible?

I have tried was is said in the below link but have had no luck.

https://support.atlassian.com/jira/kb/how-to-auto-populate-approvers-from-asset-objects-attributes-using-automation-in-assets/

2 answers

1 vote
Christopher Yen
Community Champion
May 2, 2025

Hi @Jesse Ortega Jr 

I believe this can be done, as long as the business owner is an attribute on the asset. 

I'll provide an example of what I think you can use to pull the approver but in my case I just needed to pull the department. 

2025-05-02 12_52_12-Rule builder - Automation - Business Cards - Jira.png

So you will need a custom field tied to your application schema, and then when an application is linked to your service request you should be able to pull that business owner attribute using the method I use to get a customer's department above. 

The issue.customfield will be the field on your service request that is used to link the application asset. 

{{#issue.customfield_XXXX}} {{Business Owner Attribute Name}} {{/issue.customfield_XXXX}}

This can be used to edit your approvers field (or whichever field you have your approval workflow tied to)

Hopefully this helps, let me know if you have questions

Jesse Ortega Jr
Contributor
May 6, 2025

Thanks @Christopher Yen . With the recent update to Jira I don' see the option to use a JQL for the "Edit work item" option. This is where I am stuck. AddApproverAssets.png

Christopher Yen
Community Champion
May 6, 2025

Hi @Jesse Ortega Jr , 

If you type the smart values into the Business Owner Approver section I think it might prompt you with "Smart value [smart value that you entered into the box] " that you can select

0 votes
Marc - Devoteam
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.
May 5, 2025

Hi @Jesse Ortega Jr 

Whenever you ask for help with an Automation Rule it will help us to help you if you provide:

1. what type of project is this (e.g., company-managed, team-managed, etc.), 

2. images that show your complete rule.

3. images showing the details of any relevant actions/conditions/branches.

4. images showing the Audit Log details for the rule execution.

5. Explain where the issue is.

These questions are not for not willing to help, but to have community members understand on how automation works.

In relation to this, can you show the assets configuration as well and is the attribute used for storing the manager a user object?

Marc - Devoteam
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.
May 6, 2025

HI @Jesse Ortega Jr 

Is the application provided by the requester on raising the ticket?

Can you show an application objects config from within Assets?

Is the Business Owner attribute a user attribute or other?

Jesse Ortega Jr
Contributor
May 6, 2025
  1. what type of project is this (e.g., company-managed, team-managed, etc.), 
       ◘ It is a Jira Service Management project and company-managed.
  2. images that show your complete rule.  AddApproverAssets.png
  3. images showing the details of any relevant actions/conditions/branches.
       ◘ There are none
  4. images showing the Audit Log details for the rule execution.
       ◘ Rule has not been created so there are no logs.
  5. Explain where the issue is.
       ◘ The issue is trying to see how to update the custom field with the value from the Jira asset. There is no option to update the field using a JQL or AQL.

Thank you.

Jesse Ortega Jr
Contributor
May 6, 2025

Hello @Marc - Devoteam 

Is the application provided by the requester on raising the ticket?
◘ There will be two types of requests; one where the submitter can choose the application, and the other request is for single applications. We are wanting to pull the approver from the Business Owner attribute.

Can you show an application objects config from within Assets?
◘ Here is a screenshot showing the attribute within Assets.
BusinessOwnerAttribute.png
◘ I created a custom field for Cornserstone so that the assets are shown in the request form.
Cornerstone.png

Is the Business Owner attribute a user attribute or other?
◘ It is a user attribute

Marc - Devoteam
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.
May 7, 2025

Hi @Jesse Ortega Jr 

Add an action lookupobjects action in the automation rule.

  • Set the schema value to the schema where the applications are listed
  • Set the AQL to key = "{{customfield_xxxxx}} (customfield_Id of the CornerStone field)

So in the automation the Business Owner Approver field can be set using the smart value.

Use an edit action on the field Business Owner Approval.

  • smartvalue: {{lookupObjects.Business Owner.<attribute containing the Jira user>.accountId}}

As I see the Business Owner as a reference to an other object, is on that object a Jira user linked and in what attribute?

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events