Edit Asset Object Integer Attribute via Automation

Kurtis
Contributor
July 3, 2024

I'm trying to create a submission form that will allow users to submit asset quantity updates. This involves an automation that will update the quantity based on the submission. 

The issue I face is the automation throws an error when trying to update the object attribute which is an integer. I'm not sure why this is occuring and I'm hoping someone can help me resolve the issue. 

Attribute value is not valid on Objects DO-3856 (Quantity = 1 )

Error updating Object(s)

 

Screenshot 2024-07-03 095532.png

Screenshot 2024-07-03 095304.png

 

1 answer

1 accepted

1 vote
Answer accepted
Kurtis
Contributor
July 3, 2024

Nevermind, I figured it out. 

I had to use the "FLOOR" operation to ensure the value stays an integer. 

{{issue.customfield_10194.floor}}

Screenshot 2024-07-03 100111.png

JCameron
Contributor
November 19, 2024

Thank you for posting the answer. This isn't documented anywhere and I was getting really frustrated. Docs only talk about asNumber, and my helper test in the automation widget suggested to submit a string (which failed). This worked.

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