MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
444 stars 155 forks source link

No cmdlets to manage work item tags? #419

Closed smholvoet closed 2 years ago

smholvoet commented 2 years ago

Could it be the case that are currently no cmdlets to manage work item tags?

I've noticed the Add/Get/Remove-VSTeamBuildTag cmdlets, which are build tags, not work item tags.

I feel like this could be a useful addition. Can I go ahead and launch a PR for this one? 🤔

kilasuit commented 2 years ago

@smholvoet if you are willing to put in a PR I am sure that it will be appreciated by the maintainers. Just be sure to read the Contributing file before you start down this path.

SebastianSchuetze commented 2 years ago

You don't need a new cmdlet. You can use the Add or Update work item cmdlet. The parameter additional fields allows you to fill any field (also custom) for a work item type.

Check the PR #190

smholvoet commented 2 years ago

@SebastianSchuetze Alright, I did not notice that. However, I still think there's a gap tho:

So my suggestion would be 3 new cmdlets:

SebastianSchuetze commented 2 years ago

Could you suggest also the parameters you want to include so I can better understand how you want to implement it?

Otherwise go for it. Just asking you before you start scripting so you don't make something that we need to change later. 🙂

SebastianSchuetze commented 2 years ago

To add something. It would be good if those cmdlets support changing a tag for one workitem (providing ID) or changing the tag for a whole project (providing the project).

The get could support organization, project or only workitem level. Depends on what is possible and make sense for you or withe the API.

Also try to reuse existing cmdlets in yours if possible and where it suits.

Additionally keep the style of implementation the same as the existing cmdlets. Make it easier do review for us and also more konsistent with the current code base.