vsteam icon indicating copy to clipboard operation
vsteam copied to clipboard

Work Item Relationships

Open AlanMcBee opened this issue 5 years ago • 11 comments

Feature request (and I may try to do this?)

It seems that the only way to do anything with a work item relationship to another work item is by adding a new work item (Add-VSTeamWorkItem), and then it's only adding a relationship to an existing work item as its parent.

There would be several operations that I'd like to see here. I'm sure others would fit.

  • Add-VSTeamWorkItemLink
  • Get-VSTeamWorkItemLink
  • Remove-VSTeamWorkItemLink

Maybe these (because I think these cases would be very common, and adding the "hierarchy-forward" or "hierarchy-reverse" link types are a little less than intuitive:

  • Get-VSTeamWorkItemParent
  • Get-VSTeamWorkItemChild

AlanMcBee avatar Dec 15 '19 19:12 AlanMcBee

Hey @AlanMcBee feel free to give it a try. Just follow the coding style in the other functions.

DarqueWarrior avatar Dec 21 '19 23:12 DarqueWarrior

@AlanMcBee do you still want to try this?

SebastianSchuetze avatar Apr 30 '20 12:04 SebastianSchuetze

@SebastianSchuetze Yes. My schedule flew out of my control earlier this year. I'm starting work on it now.

AlanMcBee avatar Jun 06 '20 20:06 AlanMcBee

@DarqueWarrior @SebastianSchuetze I started the Help for one of the new cmdlets (as your contribution guide suggests). I would like your take on how I'm approaching it. What works best, discussion in this issue, or a work-in-progress PR, or ...? Here is the first pass on Add-VSTeamWorkItemLink: https://github.com/AlanMcBee/vsteam/blob/master/.docs/Add-VSTeamWorkItemLink.md

AlanMcBee avatar Jun 18 '20 07:06 AlanMcBee

Looks good to me! One thing only is, that you do not need to write the syntax. It will be generated on build time. Also for the parameter description, which are pretty good. I don't know how the formatting will look like with running

Get-Help Add-VSTeamWorkItemLink -Full

if it looks good there, then it is fine to me. The best way would be to look at other help files and how it is done there. If you add more details and description then it is much better anyways.

SebastianSchuetze avatar Jul 01 '20 17:07 SebastianSchuetze

I am actively working on this issue, btw. Would you like to change the status from 'help wanted' ? Or do you need a PR first, even if it's WIP / incomplete?

AlanMcBee avatar Jul 05 '20 17:07 AlanMcBee

Just PR when you think it's ready. The pipeline are running first anyways and then you know better if your code is good enough :D.

SebastianSchuetze avatar Jul 05 '20 18:07 SebastianSchuetze

@AlanMcBee you had a branch to work on this. Could you finish it? Or maybe do you just want to open the PR in draft to see if we can help to finish it?

SebastianSchuetze avatar Aug 01 '21 20:08 SebastianSchuetze

@SebastianSchuetze Let me see what I can get completed by the end of the week (2020-08-08); I'll put in a PR (maybe in draft) by then. Is that acceptable?

CodeCharm avatar Aug 01 '21 23:08 CodeCharm

Yes of course. Maybe I can have a look and finish it. Thank you already!

SebastianSchuetze avatar Aug 03 '21 16:08 SebastianSchuetze

@AlanMcBee @CodeCharm could you publish the PR soon?

SebastianSchuetze avatar Sep 08 '21 06:09 SebastianSchuetze