Forums

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

Changing value of an asset using automation

Dirk De Mal
Contributor
February 17, 2023

Hi there,

I'm trying to change a numeric value of an assets object attribute using an automation, but I'm rather stuck at the moment.

I've created the automation and added some audit log steps to check the value I'm picking up. Everything seems to go fine until I go to the last step edit assets field attributes. The asset I want to edit is "Resterende credits" for that specific contract.assets config.png

Purpose of the automation is, once a ticket is closed, the credits field(the assignee fills this field in on closure) is deducted from the total available credits (Resterende credits).automation.png

I've added screenshots from my assets configuration, the automation and the audit log.audit log.png

If more info is needed, please let me know.

Many thx for all the help.

Kind regards,

Dirk

1 answer

1 accepted

1 vote
Answer accepted
Kai Becker
Community Champion
February 19, 2023

Hi @Dirk De Mal ,

the problem is probably the {{lookupObjects}} smartvalue. This is going to be an object an not the credit value itself. So you might need to use the dot notation to access the attribute value.

Could you try {{lookupObjects.Resterende credits}} as first part of your substraction?

Dirk De Mal
Contributor
February 20, 2023

Hi @Kai Becker 

Big thx for the help already...

I tried {{lookupObjects.Resterende credits}} as first part of my substraction, but I still get the same error in the automation audit log : No Objects associated to the Insight field.

Any other clues as to why this is not working accordingly? I'm pretty sure it's in the notification of the smart value, but really cant figure out what...

Kind regards,

Dirk

Kai Becker
Community Champion
February 21, 2023

Hi @Dirk De Mal ,

sorry to hear that. Could you please attach a screenshot of the lookup objects action from your rule?

The object you want to change is already assigned to the issue? Because this is what the rule tries to do. 

Dirk De Mal
Contributor
February 21, 2023

Hi @Kai Becker 

 

Found it...

Stupid me...I was using a different assets field then the one created in the issue...

Big thx for helping me out.

Kind regards,

Dirk

Like Kai Becker likes this

Suggest an answer

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

Atlassian Community Events