PSInsight is a Powershell wrapper to interface with Jira Insight's API.
PSInsight can be used to build or modify the Jira Insight schema or to add or modify assets within the asset management database.
Links to Insight API information for each function can be found under links via Get-Help
Get-Help Get-InsightObjectSchema
Install-Module PSInsight
Import-Module PSInsight
Clone the repository.
git clone "https://github.com/DamagedDingo/PSInsight.git"
Place directory into a module directory (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules).
Move-Item -path ".\psinsight\psinsight" -Destination "$env:USERPROFILE\Documents\WindowsPowerShell\Modules"
Import the module.
Import-Module PSInsight
Almost all commands require an API key.
For ease of use, each command looks for the variable automatically in the following order:
In the global scope for InsightApiKey
As passed as parameters to the command
As an AutomationVariable
A prompt to host to enter Key manually
The Examples folder contains samples on how to build the schema as well as object types. The corrisponding JSON file will show how to structure the data for the builder scripts.
Use get-help for more information about each function.
Get-InsightIcons
Get-InsightObjectSchema
New-InsightObjectSchema
Remove-InsightObjectSchema
Set-InsightObjectSchema
Get-InsightObjectTypeAttributes
New-InsightObjectTypeAttributes
Remove-InsightObjectTypeAttributes
Set-InsightObjectTypeAttributes
Get-InsightObjectTypes
New-InsightObjectTypes
Remove-InsightObjectTypes
Set-InsightObjectTypes
Get-InsightObject
New-InsightObject
New-InsightObjectAttribute
Remove-InsightObject
Set-InsightObject
Get-InsightStatuses
New-InsightStatuses
Remove-InsightStatuses
Set-InsightStatuses
These are custom functions to build out your Schema and ObjectTypes as per the example scripts.
Build-Schema
Build-ObjectTypes
Test-Module
New-InsightHeaders