Complete the code to create a new work item in Azure Boards using Azure CLI.
az boards work-item create --title "Fix bug" --type [1]
The correct work item type to track a bug is Bug.
Complete the code to list all work items assigned to a user in Azure Boards.
az boards query --wiql "SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.AssignedTo] = '[1]'"
The query filters work items assigned to a specific user email.
Fix the error in the Azure Boards query to filter work items by state.
az boards query --wiql "SELECT [System.Id] FROM WorkItems WHERE [System.State] = '[1]'"
The correct state value is Resolved with capital R and exact spelling.
Fill both blanks to create a query that selects work items with priority 1 and state Active.
az boards query --wiql "SELECT [System.Id] FROM WorkItems WHERE [System.Priority] = [1] AND [System.State] = '[2]'"
Priority 1 means highest priority and state Active means work item is in progress.
Fill all three blanks to create a work item with title, assigned user, and area path.
az boards work-item create --title '[1]' --assigned-to '[2]' --area-path '[3]'
The title describes the task, assigned-to is the user's email, and area path specifies the project area.