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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.