Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation to edit multiple Asset information with a single owner

Ste404
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.
February 1, 2023

Hi there,

Here is the scenario.  For new hires I want to be able to go to a form and select their name from an 'Assets' custom field.

I also have a custom field for hardware assets with a status of 'In Stock' and it is set to accept multiple values.

What I want to do is select a name of the person, in the second field select all their assets they are going to be assigned and then edit the owner field for all those assets with the value from the Owner field.

Can I update via automation multiple objects in Assets (the owner) if they are selected in a single field?

Thanks

1 answer

0 votes
Joseph Chung Yin
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 1, 2023

@Ste404 -

Hi Steven:

Yes, it should be possible with automation rule setup using smart values. Please take a look at the following reference page for smart value for Assets -

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

Here are other KB articles of using automation rule to update Assets - 

https://confluence.atlassian.com/jirakb/how-to-update-asset-object-attribute-using-automation-with-values-from-associated-jira-issue-1085200114.html

https://confluence.atlassian.com/jirakb/update-object-attribute-values-using-automation-with-jsm-assets-1072218921.html

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Ste404
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.
February 1, 2023

I have this automation in place which I thought would do the trick.

The 'AssetKey' is the customfield holding the various assets that were selected.

So I assumed that I could use the For each: to loop through each asset from the first field and update it with the owner that was selected in the second field.

It updates the first one fine, then skips all the rest, so it loops only once and I am not sure why as it lists correctly the other items it is skipping.

 

Automation.JPG

Joseph Chung Yin
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 1, 2023

@Ste404 -

Hi Steven:

I believe you will need to utilize some type of smart value for Lists in the For each condition and then update the Asset objects accordingly.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/

I have never done this before.  In addition, since your subscription is Preimum, I would also recommend you to reach out to Atlassian Support for additional tips (https://support.atlassian.com).

Hope this helps.  Sorry.

Best, Joseph

Ste404
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.
February 1, 2023

Thanks I'll keep looking.  Weirdly, even though it errors out saying it is skipping the assets other than the first one it is actually updating in Assets but the objects it updates breaks somehow and they can't be edited.

 

Will see what I can see.

Johannes Nyberg May 27, 2024

Did you managed to succeed with this @Ste404 ? Thank you!

Suggest an answer

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

Atlassian Community Events