CA Service Management

  • 1.  status transitions in a spelcode

    Posted Feb 19, 2018 09:15 AM

    Hi ,

     

    How can we test status transitions in a spel code? can anyone give me some idea or example code?

     

    Regards

    Venky



  • 2.  Re: status transitions in a spelcode
    Best Answer

    Posted Feb 19, 2018 09:57 AM

    Hi,

    there is out-of-the-box Action Macros with status change code (search for "status" in macro area), they can be used for objects that are in Edit mode (checked out), using Attached Events for example.

    If you want to call status change method for 3rd party object of frg script you need to use change_status method then, example could be found here (line 65): https://communities.ca.com/message/242040691-re-close-bulk-tickets-with-comments-in-ca-service-desk-r127?commentID=24204… 

    Regards,

    Timur Alimov



  • 3.  Re: status transitions in a spelcode

    Posted Feb 19, 2018 10:00 AM

    Oh, if you're talking about Condtion Macros within Status Transition, you can try to check them using excute:

    Check condition macro via spel