Groups assigned for a task are displaying as [Group:102] rather than Group name

I tried searching Forum already but did not find solution for this. I am following current best practices and using a!queryProcessAnalytics to display a Portal Report in Tempo, however the Groups assigned for a task are displaying as [Group:102] rather than Group name.

I am following the R7.9 Task Report Tutorial which does include how to do special handling for Task Status and Task Details, but for some bizarre reason not Task Assigned Groups. It can not be handled they way Status and Details are as there is no special column config formatting for groups as it is text.

Please help. Thanks.

OriginalPostID-150105

OriginalPostID-150105

  Discussion posts and replies are publicly visible

Parents
  • Thanks for this! I actually am using this rule in another application and works fine when the column with user or group data is known. However I am trying to adapt it to the R7.9 Task Report Tutorial which uses the different configuredFormatting values with If() functions to format the data types. See the portalReportColumn() rule below. And as queryProcessAnalystics() does return a specific formatting type for user or groups names (configuredFormatting:USER_OR_GROUP_NAME), so all I think that is missing is an If() function to check for this configuredFormatting type which then calls the rule!getFormattedUserOrGroupName. But I can not get that working with below rule. Any ideas? Thanks!

    with(
    local!columnData: index(ri!data, ri!columnConfig.field, {}),
    local!columnDataCount: count(local!columnData),
    a!gridTextColumn(
    label: ri!columnConfig.label,
    field: ri!columnConfig.field,
    data: if(
    local!columnDataCount > 0,
    apply(
    if(
    ri!columnConfig.configuredFormatting = "TASK_STATUS",
    rule!AT_getTaskStatusDisplay(data: local!columnData, index: _),
    rule!AT_displayTextCell(data: local!columnData, index: _)
    ),
    1 + enumerate(local!columnDataCount)
    ),
    {}
    ),
    links: if(
    ri!columnConfig.configuredDrilldown = "TASK_DETAILS",
    apply(
    a!processTaskLink(task: _),
    index(ri!data, ri!columnConfig.drilldownField, {})
    ),
    null
    )
    )
    )

Reply
  • Thanks for this! I actually am using this rule in another application and works fine when the column with user or group data is known. However I am trying to adapt it to the R7.9 Task Report Tutorial which uses the different configuredFormatting values with If() functions to format the data types. See the portalReportColumn() rule below. And as queryProcessAnalystics() does return a specific formatting type for user or groups names (configuredFormatting:USER_OR_GROUP_NAME), so all I think that is missing is an If() function to check for this configuredFormatting type which then calls the rule!getFormattedUserOrGroupName. But I can not get that working with below rule. Any ideas? Thanks!

    with(
    local!columnData: index(ri!data, ri!columnConfig.field, {}),
    local!columnDataCount: count(local!columnData),
    a!gridTextColumn(
    label: ri!columnConfig.label,
    field: ri!columnConfig.field,
    data: if(
    local!columnDataCount > 0,
    apply(
    if(
    ri!columnConfig.configuredFormatting = "TASK_STATUS",
    rule!AT_getTaskStatusDisplay(data: local!columnData, index: _),
    rule!AT_displayTextCell(data: local!columnData, index: _)
    ),
    1 + enumerate(local!columnDataCount)
    ),
    {}
    ),
    links: if(
    ri!columnConfig.configuredDrilldown = "TASK_DETAILS",
    apply(
    a!processTaskLink(task: _),
    index(ri!data, ri!columnConfig.drilldownField, {})
    ),
    null
    )
    )
    )

Children
No Data