- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 05:29 AM
Hi,
I am modifying one catalog where I need to manipulate the short description.
My current short description is like "Configuration Incident Response Team - P2P - AnyERP Task - High Memory/CPU - Tenant: KOK - SIDK - ServiceProvider"
but my requirement is "Configuration Incident Response Team - P2P - AnyERP Task - High Memory/CPU - Tenant: ServiceProvider"
So I want to remove this KOK - SIDK from every ticket.
So basically this "KOK - SIDK" is a prefix for each and every tenant but we don't want it in short discription. So how to remove this?
Current code is :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 05:39 AM - edited 09-18-2024 05:39 AM
To remove the prefix "KOK - SIDK" from the short description, add the following code immediately after the line:
// current.short_description += producer.Issue_Category + " - " + "Tenant: " + producer.getDisplayValue("cmdb_ci");
Insert this code
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:23 AM
okay @Eshwar Reddy
I just made a few changes:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 05:39 AM - edited 09-18-2024 05:39 AM
To remove the prefix "KOK - SIDK" from the short description, add the following code immediately after the line:
// current.short_description += producer.Issue_Category + " - " + "Tenant: " + producer.getDisplayValue("cmdb_ci");
Insert this code
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:09 AM
Thanks @Eshwar Reddy for the quick response.
I tried with the same code but it's not removing "KOK - SIDK" from the short description. Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:16 AM - edited 09-18-2024 06:22 AM
Hi @ArunG29061990
Just Ran the BS. it working as expected.
Please refer to the below screen shot.
Result
Try below code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:23 AM
okay @Eshwar Reddy
I just made a few changes: