Overrides that adds a ancestor portfolio item filter to the rallygridboardinlinefiltercontrol
for each portfolio item type supplied to the quickFilterPanelConfig
.
The plugin will:
- add a filter field for each portfolio level into the quick filter chooser
- render that field as a artifact search combobox quick filter
- apply the quick filter to the current advanced filters
- fix the
PreliminaryEstimate
in-line editor to sort by item value
- Install using npm (or yarn)
npm install '@agile-central-technical-services/utils-ancestor-pi-inline-filter' -D
- Add the file to the
javascript
section ofconfig.json
"javascript": [ "node_modules/@agile-central-technical-services/utils-ancestor-pi-inline-filter/index.js", ...
addGridboard: function() {
this.add({
xtype: 'rallygridboard',
...
plugins: [
{
ptype: 'rallygridboardinlinefiltercontrol',
inlineFilterButtonConfig: {
...
inlineFilterPanelConfig: {
quickFilterPanelConfig: {
// Supply a list of Portfolio Item Types. For example `Rally.data.util.PortfolioItemHelper.getPortfolioItemTypes()`
portfolioItemTypes: this.portfolioItemTypes,
// Set the TypePath of the model item that is being filtered. For example: 'PortfolioItem/Feature' or 'Defect'
modelName: this.modelNames[0],
...
}
}
}
}
...
}
To Update
npm version patch
- This will update the package.json to a new version and create a git tag (e.g.v1.0.1
). It will also run thepostversion
script to push the changes and tag to GitHub.npm publish --access public
- This will publish the new version to npmjs.org- Create the new release in `utils-ancestor-pi-inline-filter/releases'