Task to assign an incident to a list of actual analysts read from an AD group

Management Pack Bundle with source code for a task that reads a list of Analysts from up to 3 AD groups/domains, places those users into a drop-down and allows you to assign an Incident to your selection. A comment can also be specified which is added to the Action Log (unless

4.8 Star
1,557 times
Add to favorites
System Center
E-mail Twitter del.icio.us Digg Facebook
  • Settings for Assign To Analyst Task
    1 Posts | Last post December 16, 2016
    • I imported the management pack, but I cannot find the "Settings for Assign To Analyst Task".
  • Analyst Field Does not populate
    3 Posts | Last post January 16, 2014
    • Everything imported fine.  I am using the Advanced View Editor (FWIW).
      When I click on the analyst drop-down, it is empty (The Tier view populates just fine).
      I get the following error (after what seems like a timeout period)
      Application: Service Manager Console
      Application Version: 7.5.1561.0
      Severity: Error
      Message: An error occurred while loading the items.
      Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportException:  The Full adapter threw an exception.  See the FullUpdate property to see the exception.
         at Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportAdapter.DoAction
      (DataQueryBase query, IList'1 dataSources, IDictionary'2 parameters,IList'1 inputs, String outpuCollectionName)
         at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender,ConsoleJobEventArgs e)
         at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob (IComponent component, EventHandler'1 job, Object sender, ConsoleJobEventArgs args)
      I'm not sure if my Domain and Group addresses are 100% correct, but they look correct.  for what that is worth!
      Any help would be appreciated.
    • I knew it.  As soon as I typed '100% correct' I just knew that was the problem.  It was, and once I properly configured my Groups, the analysts list populated correctly.  
      Spectacular product, thank you!
    • Thanks, glad you got it working! It is nice to know this is still useful even after all this time :)
  • Analyst Drop Down
    1 Posts | Last post October 09, 2013
    • Hi Rob,
      Thanks for the great MP.
      I used it in my development but following the below issue. 
           1. I am not able to see any analyst in the ANALYST dropdown.
      I have tried with both AD group and SCSM Library Group.
      When i extended the code for four support groups.
      It throws an error
      "The Target attribute value is not valid. Element AssignBasicCategory references a Target element that cannot be found."   at 
          <Category ID="Category.DoubleClickAssignSetting" Target="ConsoleTask.AssignSettings.Edit" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.DoubleClickTask" />
          <Category ID="AssignBasicCategory" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
          <Category ID="Category.AssignImageBasic16x16" Target="Image.AssignBasic.16x16" Value="System!System.Internal.ManagementPack.Images.u16x16Icon" />
  • Assign Direct
    2 Posts | Last post February 26, 2013
    • I was wondering if it was possible to do more than three support groups? I am currently using 7...
    • You could change the code in AddUsers() to use one group and recursively get members, but this can have big performance issues in large environments. For example:
      PrincipalContext pc = new PrincipalContext(ContextType.Domain);
      GroupPrincipal gp = GroupPrincipal.FindByIdentity(pc, sYourGroupNAME);
      //True will recurse membership
      PrincipalSearchResult<Principal> result = gp.GetMembers(true);
      foreach (Principal p in result)
        if (p is UserPrincipal)
             //Add to list
  • Add (and Rename) to the Assign Tree
    1 Posts | Last post October 26, 2012
    • Rob,
      Thanks for this great MP!  Question for you.  Not knowing anything about coding, would it be easy to move the Assign Directly button to the "Assign" tree in SCSM 2012?  Meaning, when a user clicks Assign they would see Assign to Me and Assign Directly, instead of it being listed seperately?
      Also, how about renaming the display so it shows up as Assign Directly to Analyst or something similar?
  • Ability to add to more than 3 userse/groups?
    1 Posts | Last post September 19, 2012
    • Hi, have you considered ability to add to more than 3 groups? And how easy hard would it be? I tried editing the file and then follow the sealing procedure however I do get error:
      The management pack import failed. 
      Errors (1):
      The Target attribute value is not valid. Element AssignBasicCategory references a Target element that cannot be found.
  • SCSM 2012 recompiled failed
    2 Posts | Last post September 05, 2012
    • Hello there. I've taken the solution as is, and just for a test recompiled it from source.  I've signed the management pack, using a new public key token and generated an *.mpb file again.  I can succesfully import the newly compiled management pack, but when I want to access the "Settings to assign to assign to analyst task" - from, I get the following error:
      An object of class ManagementPack with ID 56d5c2d7-7e19-59ff-7a91-ac8a331fcb3f was not found.
      I do not get this error if I import your originally compiled management pack, just a newly compiled management pack.  I haven't changed any code in the newly compiled management pack.
      Any help will be appreciated.
    • Hi,
      You'll need to change the Guid for the settings ManagementPackClass as this would have changed as you've signed with your own snk.
  • But the same path works in my test environment
    1 Posts | Last post July 19, 2012
    • Hi Rob,
      I have both test and production environment installed in same network. As mentioned earlier it works perfectly alright with my test environment but it doesn't in my production environment.
      I am happy to attach the screenshots for you if I have an email ID.
      Really appreciate your help.
  • Getting Error while clicking on the "Assign Directly"
    2 Posts | Last post July 18, 2012
    • Hi Rob,
      Thanks for this excellent MP. The weird thing is, it worked with my test environment which is SCSM 2012 pretty well however it failed with my production one.
      The error that I am getting is:
      A referral was returned from the server.
      at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIFail)
      at System.DirectoryServices.DirectoryEntry.Bind()
      at System.DirectoryServices.DirectoryEntry.get_AdsObject()
      at System.DirectoryServices.DirectorySearcher.FindAll(Boolean FindMoreThanOne)
      at AssignDirectlyToAnalystBasi.AssignForm.AddUser(String strDomainRoot, String strGroupPath, ManagementPackClass classSettings, EnterpriseManagementObject emoSettings, ComboBox cbox)
      I don't have much understanding on the programming code. It would be great if you could check this.
      Thanks in advance,
    • Hi Wahid, I would just check that you have the LDAP path for your domain set correctly, this error suggests it is not correct.
  • Notification (cont)
    2 Posts | Last post April 04, 2012
    • Hey Rob, I saw your response on the forums, and so I thought I would ask this in the gallery:
      Thanks Rob, that definitely answers my question and I'll make future posts in the gallery. 
      I have a question or two about getting this to work.  In AssignDirectlyToAnalystBasic.cs I have changed it to:
       //Get the incident class (System.WorkItem.Incident)
        ManagementPackClass classIncident = emg.EntityTypes.GetClass(new Guid("0E6CCCDF-CB0D-46B0-CA07-1DD97BC749E1"));
      and then
        //Set the source and target...
        emoSelIncident[classIncident, "AnalystLastComment"].Value = af.textComment.Text;
      I extended the incident class with a new property named AnalystLastComment, and that is the GUID of the management pack.
      I'm not getting anything in the notification yet, but still trying to figure this out.  Does the solution need to be compiled before I reload the management pack?  Can you think of anything else that I might be forgetting to do?
    • Hi, just checking from our forum discussion, did you add emoSelIncident.Commit()? I think you did.
      Yes, you need to recompile the assembly and then you need to seal the xml management pack to make the .mp. Then you must bundle the .mp, .dll and icons into a .mpb (management pack bundle). You then import the .mpb. You must increase the MP version by at least 1 otherwise you'll get a "already exists" error when you try and import. 
      Have you done this?
1 - 10 of 14 Items