I am using a rallysolrartifactchooserdialog to display an initiative picker. However, the initiatives that populate the grid are only within my default project scoping in Rally. Is there a way to configure this to fetch all initiatives?
{
xtype: 'rallysolrartifactchooserdialog',
id: 'portfolioItemPicker',
artifactTypes: ['portfolioitem/initiative'],
autoShow: true,
height: 250,
title: 'Choose an Initiative',
listeners: {
scope: this,
artifactChosen: function(picker, selectedRecord) {
...
}
}
}
I did notice a storeConfig parameter in the documentation - perhaps this is the solution?
You're on the right track. You can control the scoping of the artifacts by including a context on the storeConfig:
storeConfig: {
context: {
//specify the workspace to search
workspace: Rally.util.Ref.getRelativeUri(this.getContext().getWorkspace()),
//all projects
project: null
}
}
By the way, if you are using 2.0rc3 the appropriate event is actually artifactchosen (all lowercase). I'll fix the doc example to reflect that...