/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Notification if my assigened assets change

09/20/2016 825 views
Hello, 
is it possible to send a notification mail if the user assigned assets change? We want to send the user an automatic mail if an assets is assigned or unassigned from their user account. 

If possible the text in the mail should contain the currently assigned assets. 

Thanks for help 
2 Comments   [ + ] Show comments

Comments

  • No and Yes, when you change it with a ticket then yes, otherwise no. As far as I know.
  • You need to have Asset History retention enabled, though I can't find the exact field to select. Here is a sample query to show ownership changes in the past day. If it works, then you can write a Custom Ticket Rule to generate emails:
    SELECT * FROM ASSET_HISTORY WHERE CHANGE_TYPE = 'Modification' AND FIELD_NAME = 'OWNER_ID' AND `TIME` > SUBDATE(NOW(), INTERVAL 1 DAY)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share