Forums

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

assets automation questions - {{object.Model(name of the model)}}

Ron Aisen
Contributor
November 28, 2023

Hi Community,

I'd like to create an automation that once an object is updated in my assets dashboard it would change to a name convention I decide and I want to do it for every object I load to assets,

so far I've managed to do it but not each time the object's name is changing to the Key aspect and not the name aspect for example

 

I have a wacom tablet that I'd like to be location-object.model convetion, and when I'm altering the object to test it out it results with location-IS-(object number) instead i.e the key value instead of the model's attribute, 

how can I get the string itself and not the key value? i.e instead of location-IS-number I'd like it to be location-wacom.model

1 answer

0 votes
Bill Sheboy
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.
November 28, 2023

Hi @Ron Aisen 

Context is important for automation rule questions.  Please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

If your rule is triggering on a change of field value, perhaps the changelog could be used to identify the changed attribute rather than its value.

Kind regards,
Bill

Ron Aisen
Contributor
November 29, 2023

Hi @Bill Sheboy thanks for the feedback!

 

So here is a more organized explanation:

 

I have an IT stock in assets with different equipment, peripherals, laptops, monitors, etc..

when we receive new shipments we're bulk uploading those to assets and not keeping up with naming conventions using the this upload method, hence why I want to create an automation that will work like so:

 

Equipment upload -> automation start: trigger = object updated -> AQL query(for example): "location" = location AND "Model" IS NOT EMPTY AND "objectType" = Wacoms -> action -> update attribue name = {{Object.Model}}

 

So for example I'd like to upload a bunch of wacoms and their models are cintiq 24 so for the naming convention it should look like this: location-cintiq 24 but the actual result is location-(Object-ID) 

I Should also mention that we have those models under an object list as well i.e objects list for location, laptop vendor, monitor vendor etc... so it might also be the cause for this, if it is how can I pinpoint to the object model as a string rather than the object ID,

 

I hope this narrows down the explanation since I couldnt find the option to add images on at community,

 

Thanks again!

Bill Sheboy
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.
November 29, 2023

In the message dialog for posts, you will see an image icon with "Insert Photos" to help.

 

I am not using JSM currently and so cannot test this, but I wonder if you use the advanced edit with JSON to update the attribute name as there is no action to directly do that with a rule.  Looking the template library I also see no examples like your scenario: https://www.atlassian.com/software/jira/automation-template-library/jira-service-management

Before proceeding, you may want to ping Atlassian Support for this one.  You appear to be the site admin for a paid license, and so can do that here: https://support.atlassian.com/contact/#/  They may have other recommendations for this type of bulk changing, such as calling the REST API with the rule.

When you hear back from support, please post what you learn to benefit the community.  Thanks!

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