Forums

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

{{createdObject}} empty after Create object action

Russ Jackson
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!
July 9, 2025

This automation in JSM creating the object in Assets.  I need to get the key for the created asset and update the JSM ticket with that key.  Read I should be able to use createdObjects or createdObject but both blank.  

JSMAuto.png

The final set is just for debugging to enumerate {{createdObjects}}.

Should this work?  Is there another approach to getting the key?  Thanks!

1 answer

0 votes
Bill Sheboy
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.
July 9, 2025

Hi @Russ Jackson -- Welcome to the Atlassian Community!

I recall there is no such smart value for the created objects.  Where did you read that information?

Here is a suggestion to add that smart value: https://jira.atlassian.com/browse/JSDCLOUD-11789

As a workaround, you may use the Lookup Objects action to gather the recent ones matching your criteria, and then use the {{lookupObjects}} smart value to access them.

Kind regards,
Bill

Russ Jackson
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!
July 10, 2025

Bill,

Thanks so much for the response.  I found the reference in one of my many web searches.  I can attest that it doesn't work in Automation.

I used your suggestion and resolved with a lookup object to fetch the newly created Asset object.

Like Bill Sheboy likes this
Bill Sheboy
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.
July 10, 2025

Awesome; I am glad to learn it is working!  Please consider marking this question as "answered" to help others with a similar need find solutions faster.  Thanks!

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