Hide Activity Sets under Tasks/To Dos tab based on State on HRM ticket Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 12:28 AM - edited 04-14-2023 12:37 AM
Need to Hide Activity Sets under Tasks/To Dos tab based on State on HRM ticket Page.
As per the below screenshot, Onboarding II Activity Set is in "Running Activities" state and rest of the activity sets like Pre-Hire, Rate/Extension or Onboarding III are in "Awaiting trigger" state.
So, I would like to hide all the "Awaiting trigger" Activity sets and display only Running Activities state activity sets. Is it possible to do this?
Note : The below shown "Awaiting trigger" activity sets are not part of this flow at all, since I used 2 similar "parent case opened for" templates in all activity sets and they are visible for "Opened for" Assignee even if I dont trigger that particular activity sets.
As stated, In the above screenshots For Prehire and Onboarding III, there shouldnt be any tasks visible, since that activity sets has not been triggered at all, but since I used 2 similar "parent case opened for" templates in all activity sets and they are visible for "Opened for" Assignee even if I dont trigger that particular activity sets.
Thats the reason Im trying to hide "Awaiting Trigger " state activity sets, or please let me know if there is any other way to resolve this.
@Ankur Bawiskar @Susan Britt @Community Alums
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 04:52 AM
Hi @Ram33843094 - There isn't a way to do this through configuration options. I would not recommend customizing this, but instead enter an enhancement request with ServiceNow. We usually talk to the business about the benefit of this (e.g., employees get to see what all will be coming for them, so they can plan) and include in the communications and training around this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 05:49 AM
Thank you @Susan Britt for the reply.
Can we group all the activity containers in one activity set with script? as I noticed we cant use multiple conditions with multiple flows in one activity set.
Right now Im trying to create 3 activity sets with 1 activity container created in each one of them, based on some field condition applied in each of the activity set. Screenshots attached below.
Field Name : Vendor Type
It has 3 values a.)New Vendor b.)Existing vendor c.)Existing Vendor(one vendor name)
@Susan Britt @Ankur Bawiskar @Sandeep Rajput @Community Alums

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 12:29 PM
@Ram33843094 If you really wish to hide the awaiting trigger activity sets then you need to make changes in the OOTB Script include hr_PortalUtil.
Here is how this script include is called from the HRM Activity Set Progress widget
You just need to apply state filter in the following script include method.
Caution: Please be informed that this is an OOTB script include and any changes here will be treated as customisation and will prevent it from upgrades in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 01:11 PM
Thanks for the reply @Sandeep Rajput !!
Not so clear about state filter you are referring to. Can you please help with the line of script that needs to be added here, if possible.
Thank you!!