none
Change Request Stuck | Pending Forver

    Întrebare

  • Dear All,

    I have a change request with an activty with the status pending. I cannot mark it as complete nor do anything about it. How to solve this?

    Regards,

    Khalid


    MCITP: Enterprise Administrator |MCITP: Server Administrator MCITP: Enterprise Support | MCTS: Exchange 2007, 2010, OCS2007 | UC Specilized

    22 aprilie 2012 06:07

Răspunsuri

  • Hi Khalindra,

    The easiest way to solve this would be a simple powershellscript that uses the SMLets (http://smlets.codeplex.com).

    The syntax should be somewhere along these lines (not tested the syntax as a whole):

    Import-Module SMLets
    
    $ActivityID = "MA123456"
    $MAClass = Get-SCSMClass -Name System.WorkItem.Activity.ManualActivity$
    $Completed = Get-SCSMEnumeration -Name ActivityStatusEnum.Completed
    
    $Activity = Get-SCSMObject -Class $MAClass -Filter "ID -eq $ActivityID"
    
    $Activity | Set-SCSMObject -Property Status -Value $Completed
    
    

    Regards
    //Anders

    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

    • Marcat ca răspuns de Khalidra 15 mai 2012 08:47
    22 aprilie 2012 20:41

Toate mesajele

  • Maybe this blog post is helpful:

    Cancelling Pending Activities When a Change Request Fails


    Andreas Baumgarten | H&D International Group

    22 aprilie 2012 11:45
  • Hi Khalindra,

    The easiest way to solve this would be a simple powershellscript that uses the SMLets (http://smlets.codeplex.com).

    The syntax should be somewhere along these lines (not tested the syntax as a whole):

    Import-Module SMLets
    
    $ActivityID = "MA123456"
    $MAClass = Get-SCSMClass -Name System.WorkItem.Activity.ManualActivity$
    $Completed = Get-SCSMEnumeration -Name ActivityStatusEnum.Completed
    
    $Activity = Get-SCSMObject -Class $MAClass -Filter "ID -eq $ActivityID"
    
    $Activity | Set-SCSMObject -Property Status -Value $Completed
    
    

    Regards
    //Anders

    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

    • Marcat ca răspuns de Khalidra 15 mai 2012 08:47
    22 aprilie 2012 20:41