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;
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
add a comment |
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
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
add a comment |
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
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
javascript azure-devops azure-devops-rest-api
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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"],
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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"],
add a comment |
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"],
add a comment |
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"],
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"],
answered Mar 26 at 20:09
Jack PhillipsJack Phillips
162
162
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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