Rules for objects
-
Hello,
is there possibility to define rules for object manipulation?e.g.:
I have Object type Server, I will archive that object or switch its status to e.g.: Stored/Retired...
but I need rule, that object can't transit to that state if there are Host adddresses in Normal state.I need at first Archive Host addresses and then swith object to another state.
-
@Milan-Leszkow
Hello,
sadly there is no function in i-doit that covers the use-case that you described.It could be possible to create a flow with the new Flows add-on that triggers when you archive a server and than archives the host address afterwards.
You can find more information about the Flows add-on here:
https://kb.i-doit.com/en/i-doit-add-ons/flows.htmlA different option would be the API. With some programming knowledge you could create a script that uses the cmdb.category.archive method to archive the host addresses and afterwards the server with the cmdb.object.archive method.
You can find more information about the API methods here:
https://kb.i-doit.com/en/i-doit-add-ons/api/methods/cmdb.category.html#cmdbcategoryarchivehttps://kb.i-doit.com/en/i-doit-add-ons/api/methods/cmdb.object.html#cmdbobjectarchive
Best regards