Forums

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

How to create and asset via automation that includes a new object attribute

Samantha Goessner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2025

I am trying to create a new object via automation from a JSM issue using the fields in the issue to populate the Asset Attribute fields. 

I am running into the problem where one of the fields is a related object attribute. 

I would like when I enter a new/unique value for the object field that it will add the value and create a new object in the related table. 

 

The use case is creating a new contact  There are two object type within the Asset schema 

1.Contact 

2. Company

 

The issue shows the company, but it will not move to the asset object

 image.png

 

This is the Automation I currently have set up where all fields other than company are added correctly.

image.png

1 answer

0 votes
kiestone
Community Champion
March 26, 2025

What I would do is have a separate step that adds the company if it doesn’t already exist, and then after that, you would be able to use the attribute in your following step that adds the contact I do not believe that the create asset object is smart enough to be able to create the related asset in the other table. 

I do have other suggestions if this does not work.  Because of doing it within the same automation, you may also need to do a re-fetch before adding your contact between the two steps

Samantha Goessner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2025

Hi, thanks @kiestone , Adding the step to add the company and re-fetch did add the company and added it to the customer company attribute field, but it is creating duplicate companies. To correct this would you recommend adding a lookup object step?

 

Something like:

1. Branch > Look up Company > if null > then create company  

2. Re-Fetch 

3. Branch > create Contact Object 

 

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