How to update an Assets Object field with the value of an attribute from another Assets field using

Fredson N_ da Silva
Contributor
February 4, 2025

How to update an Assets Object field with the value of an attribute from another Assets field using Automation?

Hello everyone,

I'm working with Jira Service Management and trying to automatically update an Assets Object field based on an attribute from another Assets field using an automation rule.

I have two object types in my Assets schema:

  • Products
  • Services

Each Product has an attribute Service, which is a reference to an object in the Services schema.

In my JSM, I have two custom Assets Object fields:

  1. "Product" → Allows users to select a product.
  2. "Service" → Should be automatically updated with the service linked to the selected product.

If a user selects "Jira Software" in the "Product" field, then the "Service (test)" field should automatically populate with "Atlassian Support".

I Have Tried:

  1. Trigger: When the "Product" field is updated.
  2. Create a variable serviceKey storing {{issue.Produit.Service.key}}.
  3. Update the "Service (test)" field using the following JSON 

             { "fields": { "customfield_9999": [ { "key": "{{serviceKey}}" } ] } }

 

Whit this: 

  • The automation runs without errors.
  • The variable serviceKey is correctly retrieved (e.g., "SERV-64").
  • But the "Service (test)" field is not updated.

 

 

Is the JSON format correct for updating an Assets Object field? Is there a better approach to dynamically retrieve and inject the "Service" attribute into the "Service (test)" field?

 

Thanks in advance for your help!

 

 

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2025

Hello @Fredson N_ da Silva 

Have you tried simply selecting the "Service (test)" field and setting it using AQL that finds the asset object with the matching key value?

https://community.atlassian.com/t5/Jira-Service-Management/Trying-to-set-a-field-in-a-ticket-in-JSM-to-an-object-from-our/qaq-p/2495344

Fredson N_ da Silva
Contributor
February 5, 2025

Thanks @Trudy Claspill 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2025

You're welcome!

Suggest an answer

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

Atlassian Community Events