Converts an object into a table formatted according to JIRA’s markdown syntax
Format-Jira [-InputObject] <PSObject[]> [[-Property] <Object[]>] [<CommonParameters>]
This function converts a PowerShell object into a table using JIRA’s markdown syntax. This can then be added to a JIRA issue description or comment.
Get-Process | Format-Jira | Add-JiraIssueComment -Issue TEST-001
This example illustrates converting the output from Get-Process
into a JIRA table, which is then added as a comment to issue TEST-001.
Get-Process chrome | Format-Jira Name,Id,VM
This example obtains all Google Chrome processes, then creates a JIRA table with only the Name,ID, and VM properties of each object.
Object to format.
Type: PSObject[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
List of properties to display. If omitted, only the default properties will be shown.
To display all properties, use -Property *
.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
accepts any Object via pipeline
Like the native Format-*
cmdlets, this is a destructive operation.
Remember to “filter left, format right!”