I have an object that holds numbers $names
name
123
456
789
012
...
I need to compose a title for an item in TFS like: My Title 123 456 789 012 ...
Add-VSTeamWorkItem -Title "My title $names" -Description "This is a description" -WorkItemType Task
If it will be run in a loop many work items will be created What is the right way to do it?
I managed to build the title. Now I need to build the description that contains in each line a title that I get from the TFS. I tried this but its not working because the object holds only one title
foreach ($patch in $patches)
{
$title = (Get-VSTeamWorkItem -Id $patch.Patch).fields.'system.Title'
}
"My title $names"not working as expected?