What this guide covers
Polarion’s Scripted Page Parameters (documented in the Polarion Widget SDK, section 7.2) let a Wiki page compute parameter values at render time using a server-side script. When combined with Planningboard’s widget parameters — such asselectedTeam, assignmentMode, or swimlane filters — this means one board page can serve multiple teams or roles without duplicating the page for every audience.
A common scenario: your project has several teams and you want each team member who opens the board to see only their own swimlane, without an administrator manually maintaining ten near-identical pages.
Prerequisites
- Planningboard is installed and a board widget is already embedded on a Polarion Wiki page.
- You have Wiki page edit permissions in Polarion.
- You understand the basic Planningboard widget parameters. See Widget Parameters Overview and Use Page Parameters.
Understand how Scripted Page Parameters work
Add a Scripted Page Parameter block to your Wiki page
module-scriptedparams macro or an equivalent script block — refer to your Polarion version’s Widget SDK for the exact syntax.The script block returns a Map<String, String>. Each key becomes a named parameter you can reference in widget configuration.Example: mapping the current user’s role to a team ID:boardTeam with a value derived from the current user’s Polarion role — no role IDs are exposed to end users.Reference the parameter in the Planningboard widget
${paramName} substitution syntax.For example, to pass boardTeam into the selectedTeam widget property:selectedTeam and a plan query filter from the same scripted value.Use a parameter in the Plan query
plansQuery property accepts a Lucene query string and also supports ${param} substitution. This lets the script constrain which Plans appear as columns for the current user.Example: show only plans belonging to the user’s team prefix:teamPlanPrefix resolves to alpha, the board loads only Plans whose ID starts with alpha.Combine with the `selectedTeam` property for capacity filtering
useTeamsService = true), the selectedTeam property determines which team’s capacity is loaded. Driving this from a scripted parameter means the capacity bar automatically reflects the current user’s team without them selecting it manually.Configuration example — single board, three teams
The following shows the complete setup for a project with three teams (alpha, beta, gamma), each with a matching Polarion role:
Scripted Page Parameters script:
team-alpha role sees only alpha* Plans as columns and the capacity bar reflects the alpha team’s capacity. Users with no matching role see all Plans (id:all*) — adjust the fallback to your project’s needs.
Common pitfalls
Verification
After saving the page and refreshing in a browser:- Open the board as a user who holds one of the mapped roles.
- Confirm the columns show only the Plans matching that team’s prefix.
- If
useTeamsServiceis enabled, confirm the capacity bar reflects that team’s capacity. - Open the board as a second user with a different role and verify the board shows a different set of Plans.
See also
- Use Page Parameters — static page parameters without scripting
- Dynamic Filtering with Page Parameters — URL-driven parameter patterns
- Configure Plans (Columns) —
plansQueryand Plans Mode options - Set Up Teams Service — prerequisite for
selectedTeamand capacity filtering - Config Scripts — server-side scripts that modify the full board configuration object
- Script Errors — diagnosing failures in scripted page parameter blocks