Forums

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

Automation to update multiple attributes automatically between parent child objects

Atlassian Home May 16, 2025

Hello,

Someone else had previously posted the exact scenario I am trying to find a solution for.

I would like to update my Child Objects (inR) when my Parent Objects are updated in relation to three specific attributes. For example

If I have three attributes called Building (objectref), Location1 (objectref) and Location2 (text string) among many other attributes related to the objects in question. This means both the parent and child have these attributes available as well. 

If any or all of those three attributes in the parent or child get updated, I want assets to update the inbound and outbound objects accordingly. 

Currently I have:

When set up with "Object Updated" 

IF set with AQL that shows "objects having inboundReferences()

IF set with AQL that shows "objects having outboundReferences()

THEN set up to the attribute values but the values are static and do not target the parent/child accordingly. 

If automation is not the best way to accomplish this, I'm open for ideas. 

3 answers

0 votes
Keira May 29, 2025

I, too, would be very curious to know the solution to getting this Assets scenario to work in Data Center Jira/JSM. It seems like basic functionality, especially because we can already update parent/children issues in Jira very easily.

0 votes
Kim Euker
Community Champion
May 28, 2025

In your automation, have you tried to use smart values?

I would:

- Identify the conditions as you are doing

- Set Smart values for my attribute values

- Update my Attribute values from the smart values

Atlassian Home May 29, 2025

I've started using the smartvalues and have been able to successfully log based on compare statements using the smartvalues. I then try to create a variable to store the updated value to pass along  to the branch action and this is where it fails as it doesn't not see the branch action "issue" as an object for assets but an issue for Jira. Any thoughts? I'm trying to execute this in global automation for my Asset Schema

0 votes
Carla Ann Rowland
Community Champion
May 19, 2025

The only way I know how to do that is in a post function in the workflow; so you will need 3 post functions. I am still learning the Asset console but that requires the script to be placed in a special file on the server so I would try the post-functions first

Atlassian Home May 20, 2025

Thanks for the response! While working in Assets there is not a workflow perse so I'm not sure where I would put a post function in this case. 

Do you know of a way to do this natively in Assets? 

Parent Object A has location field value XYZ

     Child Object B has location field value XYZ

When Parent or Child Objects have their location field value changed it is reflected in the corelating object.

All help is greatly appreciated!! :) 

 

Kim Euker
Community Champion
May 29, 2025

There is a branch on AQL, however your automation has to run in global context for you to be able to use that. That’s not a problem just something you have to change,  and then references to your assets would be {{object.xxxxx}}

if you have more questions, please ask, and I’ll try to help

Atlassian Home May 29, 2025

Thanks for the update! I'm using Data Center and I am also putting rule in global. However Data Center only appears to have branch on JQL functionality. How do I get the automation rule to point to the inR and outR? I've been able to successfully create the variable to store the value that I want to be updated - just falling short of pointing the automation to the references in order to update the associated attribute value.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events