CA Service Management

  • 1.  need full name of expected status from getvalidtransition method in casdm

    Posted Jun 21, 2018 08:16 AM

    Hello All,

     

    we are fetching web service for all expected status transition of current status of ticket or incident, we got the service getValidTransition() and got required expected status as well. But it is giving status code, we need its full name. How to get status fullname  with this service?

     

    Regards,

    Sushma



  • 2.  Re: need full name of expected status from getvalidtransition method in casdm
    Best Answer

    Posted Jun 25, 2018 08:52 AM

    As per my extensive research (5 minutes), you cannot.

     

    Use doSelect instead. doSelect is your best friend.

     

    Here are the parameters i've used. I've asked for all the transitions that can happen if the current status is OP.

     

     

    Notice the last one, I ask for new_status.sym as a return.

     

    And here is the return :

     

    <doSelectResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <doSelectReturn xmlns=""><?xml version="1.0" encoding="UTF-8"?><UDSObjectList>
    <UDSObject>
    <Handle>cr_trans:400002</Handle>
    <Attributes>
    <Attribute DataType="2005">
    <AttrName>new_status</AttrName>
    <AttrValue>CNCL</AttrValue>
    </Attribute>
    <Attribute DataType="2002">
    <AttrName>new_status.sym</AttrName>
    <AttrValue>Annulé</AttrValue>
    </Attribute>
    </Attributes>
    </UDSObject>
    <UDSObject>
    <Handle>cr_trans:400006</Handle>
    <Attributes>
    <Attribute DataType="2005">
    <AttrName>new_status</AttrName>
    <AttrValue>ASIGN</AttrValue>
    </Attribute>
    <Attribute DataType="2002">
    <AttrName>new_status.sym</AttrName>
    <AttrValue>Assigné</AttrValue>
    </Attribute>
    </Attributes>
    </UDSObject>
    <UDSObject>
    <Handle>cr_trans:400462</Handle>
    <Attributes>
    <Attribute DataType="2005">
    <AttrName>new_status</AttrName>
    <AttrValue>RE</AttrValue>
    </Attribute>
    <Attribute DataType="2002">
    <AttrName>new_status.sym</AttrName>
    <AttrValue>Résolu</AttrValue>
    </Attribute>
    </Attributes>
    </UDSObject>
    </UDSObjectList>
    </doSelectReturn>
    </doSelectResponse>

     

     

     

    Hope this helps



  • 3.  Re: need full name of expected status from getvalidtransition method in casdm

    Posted Jun 26, 2018 04:55 AM

    Hi Team,

     

    I think it would be a good to raise an Idea (Enhancement Request) for the 'getValidTransitions' method and be able to instruct it to return the sym field or whatever field similar to other methods where you can instruct the method on what attributes you want it to return and the format thereof.

     

    ===

    Kind Regards,

    Brian



  • 4.  Re: need full name of expected status from getvalidtransition method in casdm

    Posted Jun 28, 2018 03:26 AM

    Hi Pier,

    Thank you

    Used doSelect().



  • 5.  Re: need full name of expected status from getvalidtransition method in casdm

    Posted Jun 29, 2018 09:14 AM

    Please mark my answer as correct answer so this thread can be closed!