The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to lookup and auto-populate assets object custom field based on the issue "Reporter" value

ariraati
March 13, 2024

Trying to implement Jira automation (when issue created) that would lookup from Jira Assets all hardware assets (schema: Hardware Assets, and its childs like "Laptops", "Phones") and where {{reporter}} is marked in objects attribute field "User".

From the lookup output -> I wish to read the "Name" attributes and store them to my Jira custom Asset Object field named "Hardware". As end results, Hardware information in ticket should be similar to if I added them manually (picture below).

 

illustration.png

I have tried and read many articles about this, e.g. 

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

but still I cannot figure out how in Jira automation component Edit Assets field attributes, the attribute update should be set that would eventually update the custom field as desired. 

Can you provide me more detailed instructions and perhaps example of how you have achived to implement this use case OR comment if this is not possible as such?

Thanks 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Mark Higgins
Community Champion
March 17, 2024

Hi Ariraati,

Its definitely possible.

In the Custom field Reporter Assets you set up something like:

Assets 1.png

In the IT Employee Assets schema you should have an Owner that references back to the Schema that has your EMployees, like:

Assets 2.png

 

Over in the People schema, you have the User, which is where the Atlassian ID is stored.

Assets 3.png

 

So the field will reference Owner.User where the field = the Atlassian ID.

 

Hope this helps.

 

Mark

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events