Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App SDK: Query data over a workspace/multiple projects

Tags:

rally

I'm creating a report that needs to obtain data from a workspace that has several projects in it. Is there a way to specify to either search a whole workspace or multiple projects when creating the RallyDataSource? Creating a data source per project doesn't sound like the best way of going about it.

like image 977
Josh Pogrob Avatar asked Nov 29 '25 23:11

Josh Pogrob


1 Answers

If your projects have one common parent you can specify the parent project and projectScopeDown true:

var rallyDataSource = new rally.sdk.data.RallyDataSource('/workspace/12345',
    '/project/23456', false, true);

Otherwise in your queryConfig you can set the project to null to query the entire workspace:

rallyDataSource.findAll({
    key: 'stories',
    project: null,
    type: 'hierarchicalrequirement',
}, callback, errorCallback);

You could further filter it to specific projects like so:

rallyDataSource.findAll({
    key: 'stories',
    project: null,
    type: 'hierarchicalrequirement',
    query: '((Project = /project/23456) OR (Project = /project/34567))'
}, callback, errorCallback);
like image 75
Kyle Morse Avatar answered Dec 02 '25 03:12

Kyle Morse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!