Show only display name on approval workitem

Which IIQ version are you inquiring about?

  1. 5

Please share any images or screenshots, if relevant.

Please share any other relevant files that may be required (for example, logs).

[Please insert files here, otherwise delete this section]

Share all details about your problem, including any error messages you may have received.

Hello community! We have enabled the possibility of editing some attributes for a set of users… the issue is that now when the attribute to be changed is going for approval, the approval item displays the technical name and the Display name as well. Is there any way to only show the display name? Also how to change the workitem title ?

@gabs

Please provide a bit more detail about the issue. Where exactly do you want the display name to appear, and what is currently being shown instead? if possible share snap shot of code.

Hi @gabs - That is generated by the Identity Request Approve Identity Changes workflow. You might be able to change the workitem title there and see if you can update the approval item.

Hi @gabs - you can do this either by customizing the OOTB LCM workflows (would recommend cloning them when making modifications) or using a custom plugin to modify the UI on this page.

I would recommend going the custom plugin route here if you wanted this for a specific use case (i.e. only terminate date changes) or your organization has a strong desire against customizing the OOTB LCM workflows.

Without going the plugin route, you’d need to modify the Identity Request Approve Identity Changes workflow. I’ve detailed both changes below:

Change Work Item Description

You can change the description attribute in the Approval step like so:

<!-- default description -->
<Arg name="workItemDescription" value="Account Changes for User: $(identityDisplayName)"/>

<!-- your custom description - maybe something more specific -->
<Arg name="workItemDescription" value="Review Termination Date for User: $(identityDisplayName)"/>

Showing Only Display Name on Approval Form

For the attribute display, there is not an easy OOTB switch that simply says “show only attribute display names”. Since the form is being built from the provisioning plan, the standard generated output often includes both the technical attribute name and the display name. If you want to hide the technical name, you have two options:

  1. Modify the generated approvalForm in the Customize Approval Form step.

  2. Replace the generated approval UI with a custom workflow form if you want full control over the layout, labels, etc.

Hope this helps!

This post was answered by a Palyrian Solutions Architect. Feel free to message me directly if your problem requires a deeper dive.
:globe_with_meridians: palyrian.com | :telephone_receiver: ‪(301) 284-8124‬

Ho thanks ! I will try this one!

@gabs
Hi Gabs, I’m trying to achieve something similar and would like to share my findings.

In the image below, I’m trying to retain the green portion while removing the red.

Upon inspection of the html source, we can see that its being rendered by the “sp-approval-item” element.

You can find the directives for approvals and approval-items in your IIQ installation at:

  1. approval-directive.html > Desktop View > sp-approval-item
  2. approval-item-directive.html > Desktop View > !approval.isBatchRequestApproval() > sp-more-less-toggle

Do take note of the different angular directives that route mobile views, desktop views, PAM views, BatchApproval views, single Approval views, etc.

This is where you can find the logic for the text property of the element:

text="{{ ::approvalItem.isAccountRequest() ? approvalItem.getAccountDisplayName() : approvalItem.getDisplayValue() }}"

Unfortunately here is where I get a little puzzled because approvalItem.getDisplayValue() returns “DisplayValue” for me in a rule, but seem to return “DisplayValue (Value)” when called from the directive.

@gabs What workflow are you using? I tried updating the identity attribute, it launched Identity Update workflow and workitem view is different(attached here).