Update-JiraAssets Cmdlet
Updates Jira Assets data.
Syntax
Update-JiraAssets [parameters]
Remarks
The Update-JiraAssets cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Jira Assets data.
$conn = Connect-JiraAssets -User 'MyUser' -APIToken '123abc' -Url 'https://yoursitename.atlassian.net' Update-JiraAssets -Connection $conn -Table "Objects" -Columns @("Name") -Values @("Jon Doe") -Id "6"The Where parameter can also be used to specify the primary key of the table:
Update-JiraAssets -Connection $conn -Table "Objects" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '6'"The primary key can also be passed to the cmdlet along the pipeline:
Select-JiraAssets -Connection $conn -Table Objects -Where "Column2 = 'Bob'" | Update-JiraAssets -Columns @("Column2") -Values @("Bob 2")