/
How to use the Customizer Script to filter the currently logged user for the 'Issues Work Log Table' Report in the Dataplane App
How to use the Customizer Script to filter the currently logged user for the 'Issues Work Log Table' Report in the Dataplane App
This article provides the Dataplane customizer script to filter the currently logged in user for the “Issues Work Log Table” report.
Instructions
Below is an example of an “Issues Work Log Table” report for a project:
Configuration:
Report Result: The report shows a table-based breakdown of each issue that was worked on, as well as the quantity of hours that were logged by each user, for each interval in the time period.To filter the currently logged user, one can use the below customizer script:
USERS_TO_INCLUDE = [ getCurrentUser()?.getKey() ] def includeUser(String user) { return (user != null) && USERS_TO_INCLUDE.contains(user) } customizeResult { def col = getColumn("Work Logged By") Matrix matrix = getMatrix() Matrix newm = matrixFactory.createMatrix() newm.addColumn(matrix.getColumns()) matrix.rows().each { row -> String user = row.getValue(col) if (includeUser(user)) { int rownum = newm.addRow() newm.setRow(rownum, row.getRow()) } } setMatrix(newm) }
Result:
, multiple selections available,
Related content
How to use the Customizer script for Work Logged Team Filter in Dataplane app
How to use the Customizer script for Work Logged Team Filter in Dataplane app
More like this
Customizer Script to report User key information using User Work Logged by Date gadget in the Dataplane app
Customizer Script to report User key information using User Work Logged by Date gadget in the Dataplane app
More like this
Database query to find the Customizer Scripts used in Dataplane reports.
Database query to find the Customizer Scripts used in Dataplane reports.
More like this
How to filter report results to only those work log entries authored by specific users
How to filter report results to only those work log entries authored by specific users
More like this
How to create a dynamic filter to find logged time for the currently logged-in user using the Reports and Timesheets app.
How to create a dynamic filter to find logged time for the currently logged-in user using the Reports and Timesheets app.
More like this
getWorklogsForIssues
getWorklogsForIssues
More like this