locked
Remove escalate check by template RRS feed

  • Question

  • Hello,

    I am trying to apply template that remove the Escalate check , it is not working as it is taking the previous status of the event

    How can I do that while I can do Escalate a template by checking it , but if I leave it unchecked it will change nothing

    Regards,

    Tuesday, April 12, 2011 9:33 AM

Answers

  • What you will have to do is to create a template where the Escalate checkbox is checked. Then Export the MP in which this template is stored and edit it with an XML editor (notepad works fine). Open the MP with the XML editor, search for the name of your newly created template. At the bottom in the MP you will find the display string of the template, and it would look something like this:

            <DisplayString ElementID="Template.660b81ecd90e4b9ebec03439e8072c04">
              <Name>RemoveEscalate</Name>
            </DisplayString>

    Now do a new search for the ElementID bound to your display string (In this example you first do a search for RemoveEscalate and then on Template.660b81ecd90e4b9ebec03439e8072c04) You should then find the actual template in your MP. It should look something like this:

        <ObjectTemplate ID="Template.660b81ecd90e4b9ebec03439e8072c04" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
          <Property Path="$Context/Property[Type='CoreIncident!System.WorkItem.Incident']/Escalated$">True</Property>
        </ObjectTemplate>

    Now, change the word True to False. False means that the checkbox is unchecked. Re-import the MP and you should have a working template.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Tuesday, April 12, 2011 12:12 PM

All replies

  • What you will have to do is to create a template where the Escalate checkbox is checked. Then Export the MP in which this template is stored and edit it with an XML editor (notepad works fine). Open the MP with the XML editor, search for the name of your newly created template. At the bottom in the MP you will find the display string of the template, and it would look something like this:

            <DisplayString ElementID="Template.660b81ecd90e4b9ebec03439e8072c04">
              <Name>RemoveEscalate</Name>
            </DisplayString>

    Now do a new search for the ElementID bound to your display string (In this example you first do a search for RemoveEscalate and then on Template.660b81ecd90e4b9ebec03439e8072c04) You should then find the actual template in your MP. It should look something like this:

        <ObjectTemplate ID="Template.660b81ecd90e4b9ebec03439e8072c04" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
          <Property Path="$Context/Property[Type='CoreIncident!System.WorkItem.Incident']/Escalated$">True</Property>
        </ObjectTemplate>

    Now, change the word True to False. False means that the checkbox is unchecked. Re-import the MP and you should have a working template.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Tuesday, April 12, 2011 12:12 PM
  • Thanks alot

    nice idea, but it didn't work 

    Tuesday, April 12, 2011 2:54 PM
  • Work perfectly, Check you MP.
    http://opsmgr.ru
    Wednesday, April 13, 2011 1:02 AM
  • I tested it in my lab environment as well, and it worked fine.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Wednesday, April 13, 2011 6:10 AM
  • Okkkkkkkkk , now it works , I just re-do it maybe I was missing something

    Appreciate it really

    Regards,

    Wednesday, April 13, 2011 6:34 AM