Using Jira Insight I would like to create an automation rule that triggers when an attribute I have named "End of Period Quantity" is updated. I would like two things to occur, populate a date attribute with the date that the change occurred and populate an integer attribute with the calculation between the "End of Period Quantity" and "Current Quantity".
Is it possible to check an object's attribute history using groovy to accomplish this, if so, how? I've read through the Groovy scripting documentation but am having a hard time determining the capabilities of Insight Groovy scripting.