4

I'd like to create a product backlog item with tag by using the az cli (devops).

Creating the PBI works fine (az boards work-item create --type 'product backlog item' --title 'my pbi' -d 'some desc' --area --iteration ). However, the cli does not offer something like a tag option.

Is there way to add a tag while creating the PBI, or by executing a subsequent az command?

Malagueta
  • 43
  • 3

1 Answers1

7

The Azure Docs show you can use the --fields flag when calling az boards work-item create this enables you to use any of the fields defined on your work item.

For tags this field is System.Tags so you can add that to your command like this

--fields "System.Tags=Foo"

If you want a list of tags pass them as a comma separated list:

--fields "System.Tags=Foo, Bar"

Pete Philters
  • 869
  • 5
  • 12