Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SOLVED: How would you update an Asset object without going through a linked issue?

C. Derek Fields
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.
August 22, 2024

Environment

  • Invoice Object Type with a "Total" field
  • Line Item Object Type with an "Amount" field and a reference to an Invoice Object

Problem

A user creates a new Line Item object. I want to increment the Total field on the referenced Invoice with the Amount on the Line Item. I do not want to have to go through a linked issue.

How would you implement this?

1 answer

1 accepted

1 vote
Answer accepted
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2024

Hi @C. Derek Fields ,

You could create an automation rule that is triggered upon the creation of a new Line Item object.

In the automation rule, you get all Line Items via an AQL statement, loop though the results and make a sum.

Best regards,

Kris

C. Derek Fields
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.
August 26, 2024

I will try that - thanks for the suggestion.

C. Derek Fields
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.
August 28, 2024

@Kris Dewachter - Just a note that in order to make the summation work, I needed to join and split the Amounts in the list, like this:

{{lookupObjects.Amount.join(":").split(":").sum}}

I provide that in case you ever need to do something similar. Apparently, just using "sum" on the list doesn't work for reasons that I don't understand.

However, the problem that I really want to solve is to update an object that is not the object that triggered the rule. The only way I can see that I can update a referenced object attribute is to do it through an issue whether that object is referenced. 

What would be ideal would be an Assets action that would take an Object Schema and Object Key (as a smart value) and let me update the attributes. However, that doesn't exist. I can only update the object that actually triggered the automation.

Any other ideas?

Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 30, 2024

Hi @C. Derek Fields ,

Have you tried creating a AQL branch in the automation rule to get the object you need, and use the "Update Object" action in that branch?

 

Best regards,

Kris

C. Derek Fields
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.
August 30, 2024

@Kris Dewachter - Thanks for the suggestion. That very well may work - I wasn't thinking in terms of AQL branch setting the {{object}} smart value. That should get me where I want to go.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events