Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Perform Math on Insight Object Atrribute

I have an object with the attribute "Quantity" with value of 100 (int)

I have another attribute of "Qty Issued" with value of 0 (int)

and another "Qty on hand" with value of 100 (int)

When I connect that item to an issue, I want to increase "Qty Issued" by 1. Then set "Qty on Hand" to "Quantity" - "Qty Issued". 

When I remove the connection, I want to decrease the "Qty Issued" by 1, etc.


I know that Cloud has this capability easily done using Automation - but Data Center does not seem to have any method of doing it with Insight Automation.

I think that I need a Groovy script for this, but unfortunately, there seems to be limited information regarding this available. Any assistance would be appreciated.

1 answer

0 votes
Fabian Lim Community Leader May 25, 2022


Have you tried using the insight post-function from the workflow transitions?

I remember seeing some options to increase or decrease attributes back when we were in DC 


yes - but that doesn't really work. Because it will decrease or increase for every object we have selected - even if we are only adding one object. It also can't reverse the action when we remove the object.

Fabian Lim Community Leader May 26, 2022

Contact jmwe for the groovy script post function to access insight attributes and modifying them.  


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,846 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you