Azure DevOps Rest API getWorkItems Not Returning Fields SpecifiedVSTS Dashboard Widget getWorkItem optional parameter expandVisual Studio REST API Iteration and Area ID'sRegex For Work Items in Team Services APIHow to retrieve Test Results in Azure DevOps with Python REST API?Validate the azure-devops PATHow to return disabled users from the VSTS / Azure DevOps APIAPI for automating Azure DevOps Pipelines?How to add test results in Azure DevOps through REST API java?Add hyperlink to description with Azure DevOps Services REST APIHow to create/update work item with parent-child relation in C# using Azure Devops API in Azure DevopsUnable to get Azure DevOps events through REST API

How can I fix the label locations on my tikzcd diagram?

​Cuban​ ​Primes

Holding rent money for my friend which amounts to over $10k?

AD: OU for system administrator accounts

What would a Dragon have to exhale to cause rain?

Why does string strummed with finger sound different from the one strummed with pick?

Promotion comes with unexpected 24/7/365 on-call

How can I make dummy text (like lipsum) grey?

Pedaling at different gear ratios on flat terrain: what's the point?

Cycling to work - 30mile return

How could it be that 80% of townspeople were farmers during the Edo period in Japan?

When did Britain learn about American independence?

Can a person still be an Orthodox Jew and believe that the Torah contains narratives that are not scientifically correct?

How does this piece of code determine array size without using sizeof( )?

Why did the soldiers of the North disobey Jon?

Can I pay my credit card?

How to know the path of a particular software?

What formula to chose a nonlinear formula?

How to generate a triangular grid from a list of points

Non-African Click Languages

What kind of environment would favor hermaphroditism in a sentient species over regular, old sexes?

Why is vowel phonology represented in a trapezoid instead of a square?

Why did Varys remove his rings?

"Counterexample" for the Inverse function theorem



Azure DevOps Rest API getWorkItems Not Returning Fields Specified


VSTS Dashboard Widget getWorkItem optional parameter expandVisual Studio REST API Iteration and Area ID'sRegex For Work Items in Team Services APIHow to retrieve Test Results in Azure DevOps with Python REST API?Validate the azure-devops PATHow to return disabled users from the VSTS / Azure DevOps APIAPI for automating Azure DevOps Pipelines?How to add test results in Azure DevOps through REST API java?Add hyperlink to description with Azure DevOps Services REST APIHow to create/update work item with parent-child relation in C# using Azure Devops API in Azure DevopsUnable to get Azure DevOps events through REST API






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I am new to Azure DevOps Extensions. Not sure what I am doing wrong here but I cannot get certain fields for work items returned by the getWorkItems REST API.



I have tried everything I can find on the message boards and still cannot get certain specified fields to return in the results.



You can see the fields array below to see the specific fields I am trying to get back with the results.



Here are the fields that I can't seem to get returned in the results



"Microsoft.VSTS.Scheduling.StartDate"
"Microsoft.VSTS.Scheduling.StoryPoints"
"Microsoft.VSTS.Scheduling.TargetDate"
"System.AssignedTo"
"Microsoft.VSTS.Scheduling.CompletedWork"



VSS.require(["VSS/Service", "TFS/WorkItemTracking/RestClient"],
function (VSS_Service, TFS_Wit_WebApi)
// Get the REST client
var witClient = VSS_Service.getCollectionClient(TFS_Wit_WebApi.WorkItemTrackingHttpClient);

var fields = ["System.Id", "Microsoft.VSTS.Scheduling.StartDate", "Microsoft.VSTS.Scheduling.StoryPoints", "Microsoft.VSTS.Scheduling.TargetDate", "System.WorkItemType", "System.Title", "System.AssignedTo", "System.State", "System.Tags", "Microsoft.VSTS.Scheduling.CompletedWork", "System.Description", "Microsoft.VSTS.Scheduling.FinishDate"];
var ids = [workItemID];

witClient.getWorkItems(ids, fields).then(
function(result)
document.getElementById("codeblock").innerText = JSON.stringify(result);

);

);



Here is the JSON that is returned




[
"id": 7743,
"rev": 3,
"fields":
"System.Id": 1234,
"System.WorkItemType": "Feature",
"System.State": "Closed",
"System.Title": "Sprint 39 - Technical"
,
"url": "https://<companyurl>/_apis/wit/workItems/1234"
]



I have even tried the ExpandAll optional parameter in the getWorkItems call and those fields are not returned with the results.



i.e:




witClient.getWorkItems(ids, undefined, undefined, ["All"]).then(
function(result) {



I am stumped, any help or direction on where to look to find these values would be very helpful and appreciated.










share|improve this question



















  • 1





    Have you tried specifying the integer for the All enum as mentioned on this answer

    – Matt
    Mar 25 at 21:37











  • I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

    – Jack Phillips
    Mar 25 at 23:44

















3















I am new to Azure DevOps Extensions. Not sure what I am doing wrong here but I cannot get certain fields for work items returned by the getWorkItems REST API.



I have tried everything I can find on the message boards and still cannot get certain specified fields to return in the results.



You can see the fields array below to see the specific fields I am trying to get back with the results.



Here are the fields that I can't seem to get returned in the results



"Microsoft.VSTS.Scheduling.StartDate"
"Microsoft.VSTS.Scheduling.StoryPoints"
"Microsoft.VSTS.Scheduling.TargetDate"
"System.AssignedTo"
"Microsoft.VSTS.Scheduling.CompletedWork"



VSS.require(["VSS/Service", "TFS/WorkItemTracking/RestClient"],
function (VSS_Service, TFS_Wit_WebApi)
// Get the REST client
var witClient = VSS_Service.getCollectionClient(TFS_Wit_WebApi.WorkItemTrackingHttpClient);

var fields = ["System.Id", "Microsoft.VSTS.Scheduling.StartDate", "Microsoft.VSTS.Scheduling.StoryPoints", "Microsoft.VSTS.Scheduling.TargetDate", "System.WorkItemType", "System.Title", "System.AssignedTo", "System.State", "System.Tags", "Microsoft.VSTS.Scheduling.CompletedWork", "System.Description", "Microsoft.VSTS.Scheduling.FinishDate"];
var ids = [workItemID];

witClient.getWorkItems(ids, fields).then(
function(result)
document.getElementById("codeblock").innerText = JSON.stringify(result);

);

);



Here is the JSON that is returned




[
"id": 7743,
"rev": 3,
"fields":
"System.Id": 1234,
"System.WorkItemType": "Feature",
"System.State": "Closed",
"System.Title": "Sprint 39 - Technical"
,
"url": "https://<companyurl>/_apis/wit/workItems/1234"
]



I have even tried the ExpandAll optional parameter in the getWorkItems call and those fields are not returned with the results.



i.e:




witClient.getWorkItems(ids, undefined, undefined, ["All"]).then(
function(result) {



I am stumped, any help or direction on where to look to find these values would be very helpful and appreciated.










share|improve this question



















  • 1





    Have you tried specifying the integer for the All enum as mentioned on this answer

    – Matt
    Mar 25 at 21:37











  • I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

    – Jack Phillips
    Mar 25 at 23:44













3












3








3








I am new to Azure DevOps Extensions. Not sure what I am doing wrong here but I cannot get certain fields for work items returned by the getWorkItems REST API.



I have tried everything I can find on the message boards and still cannot get certain specified fields to return in the results.



You can see the fields array below to see the specific fields I am trying to get back with the results.



Here are the fields that I can't seem to get returned in the results



"Microsoft.VSTS.Scheduling.StartDate"
"Microsoft.VSTS.Scheduling.StoryPoints"
"Microsoft.VSTS.Scheduling.TargetDate"
"System.AssignedTo"
"Microsoft.VSTS.Scheduling.CompletedWork"



VSS.require(["VSS/Service", "TFS/WorkItemTracking/RestClient"],
function (VSS_Service, TFS_Wit_WebApi)
// Get the REST client
var witClient = VSS_Service.getCollectionClient(TFS_Wit_WebApi.WorkItemTrackingHttpClient);

var fields = ["System.Id", "Microsoft.VSTS.Scheduling.StartDate", "Microsoft.VSTS.Scheduling.StoryPoints", "Microsoft.VSTS.Scheduling.TargetDate", "System.WorkItemType", "System.Title", "System.AssignedTo", "System.State", "System.Tags", "Microsoft.VSTS.Scheduling.CompletedWork", "System.Description", "Microsoft.VSTS.Scheduling.FinishDate"];
var ids = [workItemID];

witClient.getWorkItems(ids, fields).then(
function(result)
document.getElementById("codeblock").innerText = JSON.stringify(result);

);

);



Here is the JSON that is returned




[
"id": 7743,
"rev": 3,
"fields":
"System.Id": 1234,
"System.WorkItemType": "Feature",
"System.State": "Closed",
"System.Title": "Sprint 39 - Technical"
,
"url": "https://<companyurl>/_apis/wit/workItems/1234"
]



I have even tried the ExpandAll optional parameter in the getWorkItems call and those fields are not returned with the results.



i.e:




witClient.getWorkItems(ids, undefined, undefined, ["All"]).then(
function(result) {



I am stumped, any help or direction on where to look to find these values would be very helpful and appreciated.










share|improve this question
















I am new to Azure DevOps Extensions. Not sure what I am doing wrong here but I cannot get certain fields for work items returned by the getWorkItems REST API.



I have tried everything I can find on the message boards and still cannot get certain specified fields to return in the results.



You can see the fields array below to see the specific fields I am trying to get back with the results.



Here are the fields that I can't seem to get returned in the results



"Microsoft.VSTS.Scheduling.StartDate"
"Microsoft.VSTS.Scheduling.StoryPoints"
"Microsoft.VSTS.Scheduling.TargetDate"
"System.AssignedTo"
"Microsoft.VSTS.Scheduling.CompletedWork"



VSS.require(["VSS/Service", "TFS/WorkItemTracking/RestClient"],
function (VSS_Service, TFS_Wit_WebApi)
// Get the REST client
var witClient = VSS_Service.getCollectionClient(TFS_Wit_WebApi.WorkItemTrackingHttpClient);

var fields = ["System.Id", "Microsoft.VSTS.Scheduling.StartDate", "Microsoft.VSTS.Scheduling.StoryPoints", "Microsoft.VSTS.Scheduling.TargetDate", "System.WorkItemType", "System.Title", "System.AssignedTo", "System.State", "System.Tags", "Microsoft.VSTS.Scheduling.CompletedWork", "System.Description", "Microsoft.VSTS.Scheduling.FinishDate"];
var ids = [workItemID];

witClient.getWorkItems(ids, fields).then(
function(result)
document.getElementById("codeblock").innerText = JSON.stringify(result);

);

);



Here is the JSON that is returned




[
"id": 7743,
"rev": 3,
"fields":
"System.Id": 1234,
"System.WorkItemType": "Feature",
"System.State": "Closed",
"System.Title": "Sprint 39 - Technical"
,
"url": "https://<companyurl>/_apis/wit/workItems/1234"
]



I have even tried the ExpandAll optional parameter in the getWorkItems call and those fields are not returned with the results.



i.e:




witClient.getWorkItems(ids, undefined, undefined, ["All"]).then(
function(result) {



I am stumped, any help or direction on where to look to find these values would be very helpful and appreciated.







javascript azure-devops azure-devops-rest-api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 15:06







Jack Phillips

















asked Mar 23 at 16:37









Jack PhillipsJack Phillips

162




162







  • 1





    Have you tried specifying the integer for the All enum as mentioned on this answer

    – Matt
    Mar 25 at 21:37











  • I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

    – Jack Phillips
    Mar 25 at 23:44












  • 1





    Have you tried specifying the integer for the All enum as mentioned on this answer

    – Matt
    Mar 25 at 21:37











  • I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

    – Jack Phillips
    Mar 25 at 23:44







1




1





Have you tried specifying the integer for the All enum as mentioned on this answer

– Matt
Mar 25 at 21:37





Have you tried specifying the integer for the All enum as mentioned on this answer

– Matt
Mar 25 at 21:37













I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

– Jack Phillips
Mar 25 at 23:44





I just tried that (thanks for the suggestion) and still get the same results. a bunch of fields are returned, but not the ones I am looking for stated above in the original post, which are part of the work items in Azure DevOps.

– Jack Phillips
Mar 25 at 23:44












1 Answer
1






active

oldest

votes


















0














I figured out what I was doing wrong. In the vss-extension.json extension manifest file there is a section for scopes. I had to change the scope from "vso.work" to "vso.work_full" and that did the trick. I am now able to get all the fields for the work items



"scopes": ["vso.work"],


To



"scopes": ["vso.work_full"],





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315978%2fazure-devops-rest-api-getworkitems-not-returning-fields-specified%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I figured out what I was doing wrong. In the vss-extension.json extension manifest file there is a section for scopes. I had to change the scope from "vso.work" to "vso.work_full" and that did the trick. I am now able to get all the fields for the work items



    "scopes": ["vso.work"],


    To



    "scopes": ["vso.work_full"],





    share|improve this answer



























      0














      I figured out what I was doing wrong. In the vss-extension.json extension manifest file there is a section for scopes. I had to change the scope from "vso.work" to "vso.work_full" and that did the trick. I am now able to get all the fields for the work items



      "scopes": ["vso.work"],


      To



      "scopes": ["vso.work_full"],





      share|improve this answer

























        0












        0








        0







        I figured out what I was doing wrong. In the vss-extension.json extension manifest file there is a section for scopes. I had to change the scope from "vso.work" to "vso.work_full" and that did the trick. I am now able to get all the fields for the work items



        "scopes": ["vso.work"],


        To



        "scopes": ["vso.work_full"],





        share|improve this answer













        I figured out what I was doing wrong. In the vss-extension.json extension manifest file there is a section for scopes. I had to change the scope from "vso.work" to "vso.work_full" and that did the trick. I am now able to get all the fields for the work items



        "scopes": ["vso.work"],


        To



        "scopes": ["vso.work_full"],






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 20:09









        Jack PhillipsJack Phillips

        162




        162





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315978%2fazure-devops-rest-api-getworkitems-not-returning-fields-specified%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현