Forums

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

Automation - How to edit an attribute of an object that is referenced in work item

Ben Whiteley
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!
January 8, 2026

I am creating a recurring check for company devices. 

Work items are created in the protect, based on time since last check date that is stored as an attribute on each device object in assets. 

I have this part working - tickets are created, and the correct object is inserted to a custom field on the work item as reference. 

 

The part i can not figure out how to do is as follows:

I want a rule that is triggered when the work item moves from in progress to done. - creating the trigger is easy part... 

Then i want to lookup the object that is referenced in the custom field on the work item, and edit the custom attribute I added "last check date" replacing the existing value with current date.

I am struggling to understand how to find the specific object listed in the work item. 

2 answers

0 votes
Marc -Devoteam-
Community Champion
January 8, 2026

Hi @Ben Whiteley 

You will need to use the lookupobject action

example clause: objecttype = <name of the object type> and key IN {{issue.customfield_xxxxx}}

Where xxxxx is the id number of the field

Then add a branch, select the asset schema and add the smart value key = {{lookupObjects.key}}

And add an edit object action in the branch.

example clause: select the attribute and use smart value {{now}}

Ben Whiteley
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!
January 8, 2026

Hi Marc,

Thanks for your help - I am making progress. However i must be missing something, as the above does not find any objects

Here is what i have:

Screenshot 2026-01-08 145543.png

and this is the log from the rule run:
Screenshot 2026-01-08 145648.png

Marc -Devoteam-
Community Champion
January 8, 2026

Hi @Ben Whiteley 

In the lookup, use objectType = <name of the object type>, don't use objecttypeid

Ben Whiteley
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!
January 8, 2026

ok - thanks - changed that back, and still no objects found. 

Appreciate your help on this. Its been driving me mad

Screenshot 2026-01-08 152101.png

Marc -Devoteam-
Community Champion
January 8, 2026

Hi @Ben Whiteley 

Can you add a log action

Use smart value {{issue.customfield_10720.key}}

Does that give any result?

Is customfield_10720 an assets custom field?

Ben Whiteley
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!
January 8, 2026

HI @Marc -Devoteam-  

Tried the alternative, still no objects found

The custom field is an assets object field yes

Added a log action (gamechanger - did not know about this!) and the value is returned correctly from the field, using both methods you mentioned. 
Screenshot 2026-01-08 161820.png

Marc -Devoteam-
Community Champion
January 9, 2026

Hi @Ben Whiteley 

In the lookup, can you change the smart value from:

objecttype = "Employee Laptops" and Key in {{issue.customfield_10720}}

to:

{{#debug}}objecttype = "Employee Laptops" and Key in {{issue.customfield_10720}}{{/}}

This will also do a log action on the AQL.

What is the result?

The resuls should be like this; objecttype = Employee Laptops and key IN <asset key>

Ben Whiteley
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!
January 9, 2026

Hi Marc,

Changed as istructed, and this is the log :


Screenshot 2026-01-09 085328.png

 

This is the assets : 
Screenshot 2026-01-09 085559.png

 

I have no idea why it is not finding them. 

0 votes
Mikael Sandberg
Community Champion
January 8, 2026

In order to edit an object you need to create a global automation, then you can use the AQL branch to lookup the object and then use the edit object to set the attribute you want to update.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events