CA Service Management

  • 1.  Search for a way to delete open incidents

    Posted May 04, 2018 04:27 AM

    Hi all,

     

    we have a development environment that currently contains 180000 open tickets.

    We are running CA SDM 17.1.
    Therefore, the MSSQL database is currently over 10GB in size. I am looking for a way to archive or delete these tickets from the database - we do not need these tickets.
    I found the following DocOps link, but I think it only works for closed incidents.

     

    How to Archive and Purge Historical Data - CA Service Management - 17.1 - CA Technologies Documentation 


    I can't touch and close each ticket manually.
    Is it possible to delete the tickets from the table at database level? But there I will probably get problems with table references?

     

    Alternatively, it is possible to mark an incident as closed at database level and then work with the regular archiving process.
    Perhaps there are such possibilities.

     

    Kind regards,

    Tobias



  • 2.  Re: Search for a way to delete open incidents

    Broadcom Employee
    Posted May 04, 2018 05:42 AM

    Hello ahd,

     

    these pages may probably help with your requirement:

    The first one is the most elaborated and flexible approach.

    You need to adjust the spellcode in line 27 with a where clause that fits to your needs:

    Just "active = 1" should probably to the trick here to catch all non-closed Incident / Problem / Request tickets.

    In line 57 you need to set the targeted status code for those tickets to your desire (probably: "CL" ?):

    Please be aware of the authors statement:

    test it well and use it at your own risk.

     

    Best Regards

    Udo



  • 3.  Re: Search for a way to delete open incidents

    Broadcom Employee
    Posted May 04, 2018 09:28 AM

    In the Search tickets (incidents, requests) return page has "Edit in List" button. You can change status to close for the tickets on the list. It would allow you to close many tickets in shot.



  • 4.  Re: Search for a way to delete open incidents
    Best Answer

    Broadcom Employee
    Posted May 04, 2018 09:41 AM

    Maybe you can try this and it is way easier...

    edit the itil_arcpur_cfg.xml file in site\cfg folder to remove the requirement for open tickets. For example, for cr(call request), change

    <default_query>type = 'R' AND active=0</default_query>

    to

    <default_query>type = 'R'</default_query>

    so being open is not excluded. I don't test this yet and simply throw out here for your consideration. Thanks _Chi



  • 5.  Re: Search for a way to delete open incidents

    Posted May 08, 2018 02:59 AM

    Thank you so much - works perfectly for our requirements.

    Now we have to wait about one day to delete 180.000 test incidents, but this would be fine.

     

    Thanks,

    Tobias



  • 6.  Re: Search for a way to delete open incidents

    Broadcom Employee
    Posted May 07, 2018 12:03 PM

    Do you require any further assistance on this topic?

     

    If not, please mark one of the answers as correct so that this thread can be closed.