TfsCmdlets icon indicating copy to clipboard operation
TfsCmdlets copied to clipboard

Error "Get-TfsWorkItem : Value cannot be null. Parameter name: values" when specifying -Fields '*'

Open igoravl opened this issue 2 years ago • 2 comments

    I'm curious about Get-TfsWorkItem and the -Fields property. The documentation says to specify a '*' to return all fields. Any ideas?

Get-TfsWorkItem -AreaPath $areaPath -WorkItemType "User Story" -Fields "*"

Get-TfsWorkItem : Value cannot be null. Parameter name: values At line:1 char:1

  • Get-TfsWorkItem -AreaPath $areaPath -WorkItemType "User Story" -F ...
  •   + CategoryInfo          : NotSpecified: (:) [Get-TfsWorkItem], ArgumentNullException
      + FullyQualifiedErrorId : ArgumentNullException,TfsCmdlets.Cmdlets.WorkItem.GetWorkItem
    
    

Originally posted by @sbrassard in https://github.com/igoravl/TfsCmdlets/discussions/183#discussioncomment-5102336

igoravl avatar Feb 28 '23 02:02 igoravl

I have the same issue, seems that wildcard is not work correctly or i m using it in a wrong way.

I obtain alwasy: Get-TfsWorkItem: Value cannot be null. (Parameter 'values')

andreae75 avatar Sep 22 '23 14:09 andreae75

I found a workaround, is not a beauty solution but works.

image

andreae75 avatar Sep 22 '23 14:09 andreae75

Fixed in #214. Release available at https://github.com/igoravl/TfsCmdlets/releases/tag/v2.6.1%2B3491.1

igoravl avatar May 15 '24 16:05 igoravl