Create, query and view Work items.
To learn more about TFX, its pre-reqs and how to install, see the readme
Note: For work item commands to function when connecting to Team Foundation Server you must login using the collection URL. On VSTS your normal account url will work fine.
Team Foundation Server
tfx login --service-url http://myServer/DefaultCollection
Visual Studio Team Services
tfx login --service-url https://myAccount.VisualStudio.com
tfx workitem show
--work-item-id
: Work item id.
tfx workitem show --work-item-id 2
tfx workitem query
--query
: WIQL query text.--project
: Optional name of the project. This lets you use @Project and @CurrentIteration macros in the query.
tfx workitem query --project MyProject --query "select [system.id], [system.title] from WorkItems"
tfx workitem create
--project
: Name of the project.--work-item-type
: Work Item type (e.g. Bug).--title
: Title value--assignedTo
: Assigned To value--description
: Description value--values
: JSON object of name/value pairs to set on the Work Item
tfx workitem create --work-item-type Bug --project MyProject --title MyTitle
tfx workitem create --work-item-type Bug --project MyProject --values --% {\"system.title\":\"MyTitle\", "system.description\":\"MyDescription\"}
tfx workitem create --work-item-type Bug --project MyProject --values {\"system.title\":\"MyTitle\", "system.description\":\"MyDescription\"}
tfx workitem update
--work-item-id
: Name ID of the work item to update.--title
: Title value--assignedTo
: Assigned To value--description
: Description value--values
: JSON object of name/value pairs to set on the Work Item
tfx workitem update --work-item-id 11 --title MyTitle
tfx workitem update --work-item-id 11 --values --% {\"system.title\":\"MyTitle\", "system.description\":\"MyDescription\"}
tfx workitem update --work-item-id 11 --values {\"system.title\":\"MyTitle\", "system.description\":\"MyDescription\"}