I'm in the process of moving my assets over to Jira Service Management's Assets feature, and I'm wondering if there's a way to set up my assets to automatically depreciate and display a current book value. Having a running book value on our assets, especially our laptops and desktops, makes it much easier when it comes to selling or insuring our assets. I'd like to avoid having to keep a separate app to manage depreciation if I can help it.
Apologies in advance if this is already answered elsewhere, but I didn't find anything in my searches.
Hi @Stephen Ashby , welcome to the Community!
While I have an idea on how you can capture depreciation value / book value inside of Assets, I do not think there is a built-in way for Assets to calculate this for you.
Instead, I think you'll need to implement some automation to perform the calculations to reduce the book value on an automatic basis.
In order to build this functionality, there are a few pre-requisites:
Once all of this is complete, you should be clear to import your existing asset data into this object.
Now comes the tricky part, building the automation to update the Book Value of each asset individually. Here's the plan I came up with:
objectType = "Depreciating Asset" and ("Book Value Last Updated Date" < startOfMonth() OR "Book Value Last Updated Date" is EMPTY)
objectType = "Depreciating Asset" and ("Book Value Last Updated Date" < startOfMonth() OR "Book Value Last Updated Date" is EMPTY)
{{object."Purchase Date".diff(now).months}}
{{#=}}{{object."Purchase Price"}} - ({{monthsSincePurchase}} * {{object."Purchase Price"}} / {{object."Depreciation Period"}}){{/}}
{{bookValue}}
{{now.jiraDate}}
And once we have that setup, you can enable the rule and you should be off to the races! The rule should run once at first to calculate the initial values, and then once per month based on the settings in the Schedule condition.
This should result in your Assets being updated to look similar to the following:
You may want to play around with the rounding options to make sure the amount displays correctly and to your needs, but overall this should work.
Hopefully this meets your needs!
Robert
Math rounding options can be seen here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/#Round, you may also want to consider the asCurrency function too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah! Depending on how many items you need to update, you will likely need this automation running more frequently than once per month.
You'll want to update the frequency, in addition to the AQL statement. This will all depend on the dates and frequency you choose, but here's a page on AQL date functions available: https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/#Functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One other note, the math I used here as an example does not control for the Book Value going negative. So if you need to ensure the value stops at 0, you'll want to add another step here to check if the calculated book value is below 0, and set it to 0 if that's the case.
EDIT: We might want to adjust the initial AQL as well to check for any Book Value entries that are 0 and above, or just empty.
objectType = "Depreciating Asset" and ("Book Value Last Updated Date" < startOfMonth() OR "Book Value Last Updated Date" is EMPTY) AND ("Book Value" is EMPTY OR "Book Value" > 0)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.