This article provides the Dataplane customizer script to filter the currently logged user in for the “Issues Work Log Table” report.
\uD83D\uDCD8 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, 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:
Code Block 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:
...
\uD83D\uDCCB Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...