ServiceDesk

 View Only
  • 1.  Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 20, 2011 03:41 PM

    Any one have an idea on how to write the SQL query properly in order to pull the classfications out of the ensemble database?  I am trying to do a self join but the first column is still displaying everysingle classification like it is the top level classififcation.  Currently we go 5 levels deeps with the classifications.



  • 2.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 21, 2011 09:29 AM

    In case you're interested, 7.1 SP2 will have import/export functionality for hierarchy classifications.



  • 3.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 21, 2011 03:05 PM

    I plan on going that route eventually but that is a ways away.  Thanks for the reply.  



  • 4.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 21, 2011 03:28 PM

    Just an FYI... I know it doesn't help you now.



  • 5.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 21, 2011 07:46 PM

    i have came this issue before, and i exported the data using SQL



  • 6.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 22, 2011 12:33 PM

    If you could provide that query that would be awesome.  The self joins were not working for me.  It would list all of the selections in the first column then start to tree out.  Couldnt figure it out.



  • 7.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Sep 22, 2011 07:17 PM

    you will need to do a self join on the same HierarchyCategory table


    select i.name as Parent, o.name as Item

    from [ProcessManager].[dbo].[HierarchyItem] o

    inner join [ProcessManager].[dbo].[HierarchyItem] i on i.HierarchyItemID = o.ParentHierarchyItemID




  • 8.  RE: Export the Hierarchy Classifications to a Spreadsheet

    Posted Mar 18, 2012 09:58 PM

    Took Mohammed's script a little further to include the parent category name and to deal with childless parents.

    SELECT p.Name AS Category, i.Name AS Parent, o.Name AS Item

    FROM [ProcessManager].[dbo].[ HierarchyCategory] AS p INNER JOIN

    [ProcessManager].[dbo].[ HierarchyItem] AS i ON p.HierarchyCategoryID = i.HierarchyCategoryID LEFT OUTER JOIN

    [ProcessManager].[dbo].[ HierarchyItem] AS o ON i.HierarchyItemID = o.ParentHierarchyItemID

    ORDER BY Category, Parent