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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to use Lookup Asset object in Automations for User Attribut?

Edited

Hi,

we have an actual problem:

We have an objectType in Assets that includes all employees with a few attributes. One of the abttributes is the supervisor as a user attribute.

Furthermore we have a customfield with the type "Assets readonly object" which shows the reporters employee object.

Now we want to build an automation that automatically fills the Request participant with the Supervisor attribute.

I have tried the following:

1.PNG2.PNG

But it does not work an I've got an error message:

3.PNG

Do you have any idea about that?

Thank you!

2 comments

Comment

Log in or Sign up to comment
Marko Blagus
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.
Nov 04, 2023

Hello @Kaja Iske,

 

Do you retrieve the attribute from issue's custom field?

If that's the case you can try with {{custom_field_name.Supervisor}} to get the "Supervisor" attribute value.

For example if your custom field name is "Employee", try with {{Employee.Supervisor}}.

I hope this helps.

 

Best regards,

Marko Blagus

Hi @Marko Blagus ,

the custom field only shows the employee.

I've tried your idea but I get the same error message (No object with the key '' exists). 

Best regards

Kaja Iske

Marko Blagus
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.
Nov 05, 2023

Can you please send me a screenshot of your automation with my suggestion?

 

Best regards,

Marko Blagus

Marko Blagus
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.
Nov 06, 2023 • edited

No, try to remove the step "Lookup Asset", just copy the value from Object's attribute to the field "Request participants". 

For "Request participants" value try to put {{Employee.Supervisor}}.

Let me know.

 

Best regards,

Marko Blagus

Now I get "Success" in the Audit log but it has no effect. The Request participant has not been filled.

Marko Blagus
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.
Nov 06, 2023

You get the message that field is edited successfully but it's not?

Does your object have the value for that attribute?

 

Best regards,

Marko Blagus

Yes, it definitely has. :-(

Marko Blagus
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.
Nov 06, 2023

Check out this solution.

Maybe it will help you solve your problem.

Let me know.

 

Best regards,

Marko Blagus

Marko Blagus
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.
Nov 06, 2023

Try to add .accountId when you're trying to put attribute's value to the "Request participants" field.

I tried your ideas in many combinations but it doesn't work. I think that I don't even get the correct value from the customfield, because instead of changing the request participants, I just had the text written in a comment. So far I have not gotten the correct supervisor back.

Hi,

so I was in contact with the vendor. There is a bug with Asset read only custom fields. When we use the normal Asset object it works. The way I used before (see my first description) was correct.

Thanks anyway for the support :-)!

Best regards

Kaja

TAGS
AUG Leaders

Atlassian Community Events