Created
December 2, 2021 03:25
-
-
Save vinijmoura/b33140830be06b0be6074fe2132c1efe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization | |
) | |
#connect Azure DevOps | |
echo $PAT | az devops login --org $Organization | |
az devops configure --defaults organization=$Organization | |
#Read File | |
$data = Import-Csv -Delimiter '|' -Path "$home\desktop\wis.txt" -Header 'WorkItemType','Title','TeamProject','Area','Iteration' | |
#insert Work Item | |
$data | foreach { az boards work-item create --title $_.Title --type $_.WorkItemType --project $_.TeamProject --area $_.Area --iteration $_.Iteration } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment