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

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

Kaja Iske October 31, 2023

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.
November 4, 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

Kaja Iske November 5, 2023

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.
November 5, 2023

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

 

Best regards,

Marko Blagus

Kaja Iske November 5, 2023

1.PNG2.PNG

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.
November 6, 2023

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

Kaja Iske November 6, 2023

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.
November 6, 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

Kaja Iske November 6, 2023

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.
November 6, 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.
November 6, 2023

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

Kaja Iske November 6, 2023

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.

Kaja Iske November 9, 2023

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