Forums

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

How to update approvers from Asset Object Attributes with Automation

Beth Starr December 14, 2023

I have a customer that wants to set the approver's field with an insight attribute using Automation.

For example:

Application has an attribute of Approval Group in Asset schema 1.

The Approval Group  attribute is an object type in Asset Schema 2.

The Approval Group has an attribute of Members

Members attribute is an object type of Employees in Asset Schema 2 and lists the Jira Users that would need to be added to the Approver's field for an approval step in the workflow.

 

I have tried to use:

For each: Smart Value

  • Smart Value - {{issue.Application}}
  • Variable - App

Then:  Add value to the audit log:

Apps: {{App}}

And Edit Issue Fields: (advanced)

{
"fields": {
"customfield_12345": [
{{#App.Approval Group.Members}}{"accountId": "{{Atlassian Account}}"{{^last}},{{/}}}
{{/}}]
}
}

The log shows:  Apps:  LOOKUP-111756

I am getting an error - Error while parsing additional fields. Not valid JSON.

Any ideas?

1 answer

0 votes
Eugenio Onofre
Community Champion
December 22, 2023

Hi @Beth Starr

The issue you are seeing is due to a bad JSON format. Would you please provide a screenshot of your automation so we can try to better assist you?

Regards,
Eugenio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events