On my issue type, I created a custom field to reference Insight objects.
When I update that issue field (when I add a reference to an Insight object) I want to automate the value of an attribute of the referenced Insight object.
My Insight object has an attribute called "Stock" and I would like to update that value to its own value, minus 1.
That is : my Insight object has a "Stock" value of 10. When I reference this object on my issue, I want to update that stock value to 10-1 (9).

The automation rule gets triggered, but the value of Stock becomes -1 instead of 9. I bet the problem is with "object.Stock". What am I doing wrong?