Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Rules for objects

    Scheduled Pinned Locked Moved General
    3 Posts 3 Posters 153 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Milan Leszkow
      last edited by

      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.

      Luis JürgenliemkeL K 2 Replies Last reply Reply Quote 0
      • Luis JürgenliemkeL Offline
        Luis Jürgenliemke @Milan Leszkow
        last edited by

        @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.html

        A 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#cmdbcategoryarchive

        https://kb.i-doit.com/en/i-doit-add-ons/api/methods/cmdb.object.html#cmdbobjectarchive

        Best regards

        1 Reply Last reply Reply Quote 0
        • K Offline
          katebishop @Milan Leszkow
          last edited by

          @Milan-Leszkow i-doit does not natively support conditional rules for object state changes in the Community Edition. To enforce such rules, you'd need to implement custom logic using the i-doit API or a plugin.

          Block Blast Online

          1 Reply Last reply Reply Quote 0
          • First post
            Last post