- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2025 06:40 AM - edited ‎03-06-2025 06:44 AM
Hi,
A list collector field is added to Parent and child tickets.
Related tickets from multiple sub tasks are getting added to parent. When two or more sub tasks having same related ticket it is getting duplicated and adding multiple times in parent related task field. How to restrict adding of ticket if that ticket already added to parent related ticket list field.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 07:57 AM
just before adding the values use arrayUtil unique method to remove duplicates and then set the field value
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2025 07:29 AM
Hi @Kumar147 ,
The issue is not clear. Can you post some screenshots of what exactly is happening? Till now what you have configured and how you have configured, if you would post those scripts, that would also be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 07:38 AM
Hi @Dhana3
Actually i have one parent ticket having multiple child tickets. Child tickets have change request field which will store the change related to that child ticket. I have created a business rule to pass the values of change request linked to child tickets to parent ticket. If same change request linked to multiple child tickets. change is adding multiple times to parent list collector field. How to check of the change is already added to the parent ticket and only to add new change tickets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 07:57 AM
just before adding the values use arrayUtil unique method to remove duplicates and then set the field value
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 10:50 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader