Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2139

PowerShell Export-JS7InventoryItem cmdlet should export folders recursively

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.5.10, 2.6.7, 2.7.2
    • None
    • None

    Description

      Current Behavior:

      • When using the PowerShell cmdlet Export-JS7InventoryItem to export a folder recursively, the subfolders are missing from the exported folder.

      Steps to Reproduce:

      • Create a nested folder structure in the Inventory as shown in the attached Folder_recursive.png.
      • Connect to the JS7 REST Web Service available from JOC Cockpit by following the instructions in the PowerShell CLI 2.0 - Cmdlets - Connect-JS7 KB article.
      • Export the inventory item from the root folder of the inventory by following the instructions in the PowerShell CLI 2.0 - Cmdlets - Export-JS7InventoryItem KB article.
        Example:
        Export-JS7InventoryItem -Folder / -FilePath "C:\powershell_excel\exported-js7\export_271.zip" -Recursive -debug
      • Check the exported folder. The subfolders are missing from the exported folder.

      Desired Behavior:

      • The PowerShell cmdlet Export-JS7InventoryItem should support the -Folder and -Recursive options.
      • To export folders the new -JS7InventoryFolder cmdlet is added that allows to export folders recursively without selection of specific object types such as workflows, schedules etc.

      Attachments

        1. Folder_recursive.png
          Folder_recursive.png
          26 kB
        2. exported-js7.png
          exported-js7.png
          5 kB
        3. export-result.txt
          13 kB
        4. inventroy.png
          inventroy.png
          85 kB
        5. image-2024-07-29-16-10-42-936.png
          image-2024-07-29-16-10-42-936.png
          44 kB

        Activity

          People

            ap Andreas PĆ¼schel
            Pramokshi-Narawariya Pramokshi Narawariya
            Pramokshi Narawariya Pramokshi Narawariya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: