6 Replies Latest reply on Nov 6, 2019 2:43 PM by James Annis

    How to create Remedy Task Relationship using ARSAdapter?

    James Annis
      Share This:

      The AutoPilot-OA-Task_Management module mainly uses the ARSAdapter, except for certain workflows.

      The workflow, "Create Task Relationships" for some reason decided to use the SOAPAdapter.

      The Remedy SOAP interface is not available in my environment.

       

      Need a way to create a Remedy Task Relationship with an asset, i.e. AST:ComputerSystem object.

      Thanks, Jim Annis

        • 1. Re: How to create Remedy Task Relationship using ARSAdapter?
          Carl Wilson

          Hi,

          the reason for the different adapters is that there is a Web Service interface specifically for the CMDB, thus the Soap Adapter is used to invoke this.

          You will need to create entries in the following forms for the relationship to be seen from either direction:

           

          • TMS:Relationships
          • AST:CMDB Associations

           

          Cheers

          Carl

          1 of 1 people found this helpful
          • 2. Re: How to create Remedy Task Relationship using ARSAdapter?
            James Annis

            Makes sense.

            Is there a BMC AutoPilot workflow that could be used as a model to create these entries using the Schemas you have listed?

            Do you think you only need CMDB=>Asset=>Task or do you also need the parent relationships, i.e. CMDB=>WorkOrder, CMDB=>Asset, Asset=>Task ?

            • 3. Re: How to create Remedy Task Relationship using ARSAdapter?
              Carl Wilson

              Hi James,

              I don't have a system in hand, so I am not sure if the module contains any workflow to accommodate via the AR Adapter, but generally you need to know what data is to be placed into each of the 2 relationship records.

               

              As for where the relationship is to be created, it depends on the type of request you are wanting to relate to the CI.  You can relate at the parent level, or the individual Task level - it will depend on where the relationship is required to be defined, but both are valid use cases to perform relationships against.

              Generally, if the parent request contains all the CI's that are related then you can do the relationship at this level - however you may want to relate against a Task directly if that CI forms part of the work to be done by that Task and that Task only.

               

              Cheers

              Carl

              1 of 1 people found this helpful
              • 4. Re: How to create Remedy Task Relationship using ARSAdapter?
                James Annis

                Howdy Carl,

                 

                Existing Relationship / Association:

                • Task=>Child of Work Order

                 

                Relationships / associations needed (same asset):

                • Asset "Related To" Task
                • Asset "Related To" Work Order

                 

                Thanks,

                Jim

                • 5. Re: How to create Remedy Task Relationship using ARSAdapter?
                  Carl Wilson

                  Hi,

                  for Work Order, a record in the following form will need to be created (along with the AST:CMDB Associations):

                   

                  • WOI:Associations

                   

                  Cheers

                  Carl

                  • 6. Re: How to create Remedy Task Relationship using ARSAdapter?
                    James Annis

                    I found a working solution.

                     

                    You have to use the [AST:CMDB Associations] schema to create a task==>Asset association.

                    Then you use the [TMS:RelationshipsInterface_Create] schema to create an Asset==>Task relationship.

                     

                    The following is an example of the fields / values used.

                    Regards,

                    James Annis

                    ++++++++++++++++++++++++++++++++++

                     

                    +++++++++++++++++++++++++++++++
                    +++ Associate Asset to Task +++
                    +++++++++++++++++++++++++++++++

                    Uses ":AMP-AD-BMC-Remedy-ARS:Create Items"

                    +++ Step 1 +++

                    >>Create Asset Assoc<<
                    Example:

                    <items>
                    <item>
                    <schema>AST:CMDB Associations</schema>
                    <fields>
                    <values>
                    <!-- Status, Enabled=1 -->
                       <field name="Status">1</field>
                       <field name="Lookup Keyword01">BMC_COMPUTERSYSTEM</field>
                        <field name="Parent_DataSet_ID01">BMC.ASSET</field>
                        <field name="Form Name01">TMS:Task</field>
                        <field name="Form Name02">AST:ComputerSystem</field>
                    <!-- Task Instance ID -->
                        <field name="Request ID01">AGGAA5V0H7GM7APZ32TMPY5Q5UVFHB</field>
                    <!-- CI Reconciliation ID -->
                        <field name="Request ID02">OI-5BA43FB5F0B64BF38522614E9312XXXX</field>
                    <!-- Task Description -->
                        <field name="Request Description01">Automation Hardware Option</field>
                    <!-- Assoc Type01, [Related to]=35000 -->
                        <field name="Association Type01">35000</field>
                    <!-- Request Type, [Task]=13000 -->
                        <field name="Request Type01">13000</field>
                    <!-- Task ID -->
                        <field name="Parent Request ID02">TAS12345</field>
                    </values>
                    </fields>
                    </item>
                    </items>

                     

                     

                    +++ Step 2 +++

                    >>Create Task Relationship<<
                    Example:

                    <items>
                    <item>
                    <schema>TMS:RelationshipsInterface_Create</schema>
                    <fields>
                    <values>
                    <!-- Session Status, [Previously Created]=0 -->
                    <!-- Session Status, [Just Created]=1 -->
                    <!-- Session Status, [Delete Pending]=2 -->
                    <field name="Session Status">0</field>
                    <field name="Attribute2">Computer System</field>
                    <field name="TaskID">TAS12345</field>
                    <field name="Lookup Keyword">BMC_COMPUTERSYSTEM</field>
                    <field name="Form Name01">AST:ComputerSystem</field>
                    <field name="Form Name02">TMS:Task</field>
                    <!-- Asset reconciliation ID -->
                    <field name="ID01">OI-5BA43FB5F0B64BF38522614E9312XXXX</field>
                    <!-- Task Instance ID -->
                    <field name="ID02">AGGAA5V0H7GM7APYT9YKPXVXKRMX5C</field>
                    <!-- Asset Name -->
                    <field name="Request Description01">blitzen-hp-17w</field>
                    <!-- Assoc Type, [Related to]=35000 -->
                    <field name="Association Type">35000</field>
                    <!-- Request Type, [Configuration Item]=6000 -->
                    <field name="Request Type01">6000</field>
                    </values>
                    </fields>
                    </item>
                    </items>

                    3 of 3 people found this helpful