restApi.query({
type: 'portfolioitem/feature', //the type to query
limit: Infinity,
//order: 'Rank', //how to sort the results
fetch: ['FormattedID', 'Project', 'Release', 'State', 'Milestones', 'PreliminaryEstimate', 'RefinedEstimate'], //the fields to retrieve
query: ...,
scope: {
project: '/workspace/...', //specify to query a specific project
up: true, //true to include parent project results, false otherwise
down: true //true to include child project results, false otherwise
},
requestOptions: {} //optional additional options to pass through to request
})
then and catch are also omitted, the error that i receive is: Error: /portfolioitem/feature: 200! body=undefined which occurs in the request.js file from the rally dist folder
Any ideas what is going on?
Just a typo...The scope isn't anymore a project, but a workspace...
I have a REST Service that will retrieve some features for a given query (which is omitted here..)
I have the following code, (which runs fine for other similar search scenarios).
const rallyOptions = require('../config/config.json').rally.options;
const restApi = rally(rallyOptions);
restApi.query({ type: 'portfolioitem/feature', //the type to query limit: Infinity, //order: 'Rank', //how to sort the results fetch: ['FormattedID', 'Project', 'Release', 'State', 'Milestones', 'PreliminaryEstimate', 'RefinedEstimate'], //the fields to retrieve query: ..., scope: { project: '/workspace/...', //specify to query a specific project up: true, //true to include parent project results, false otherwise down: true //true to include child project results, false otherwise }, requestOptions: {} //optional additional options to pass through to request })
then and catch are also omitted, the error that i receive is: Error: /portfolioitem/feature: 200! body=undefined which occurs in the request.js file from the rally dist folder
Any ideas what is going on?
Just a typo...The scope isn't anymore a project, but a workspace...