The syntax of the command is incorrect: Creating work item with html in description
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Hello,
I want to "clone" some tasks. Therefore I read a task with command
az boards work-item show --id --org
in the returned object I got the description of the card in field "System.Description"
It seems, that every text in microsoft devops (dev.azure.com) is include into DIV tag.
So for my card with description text 'test', I got back:
"System.Description": "<div>test</div>"
The problem I have is, when I now try to create a new card with this description, I got the error: "The syntax of the command is incorrect"
az boards work-item create --org $org --project $proj --title 'test' --type 'Task' --description '<div>test</div>'
When I insert a space between the starting DIV tag and the text 'test', then everything works fine
'<div> test</div>'
I suggested, that I can use the output of az boards work-item show -> System.description field 1 to 1 for creating a new task
I run the az cli commands under Windows 10 client
az --version shows the following:
azure-cli 2.19.1
core 2.19.1
telemetry 1.0.6
Extensions:
azure-devops 0.18.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\\.azure\cliextensions'
Python (Windows) 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
to run the az cli commands, I use powershell Version 5.1.18362.1171
Contributor guide
Assessment
This issue has not been assessed yet.