Record producer related
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2024 11:22 PM
Hi ,
I have check box variable on record producer, no other varaibles available
if i click that check box incident should be populated with following mappings
category,subcategory,description,assignment group etc.
i have written script on record producer is
if(producer.cyber_security == true)
{
current.category = 'given category';
current.subcategory = 'given subcategory';
}
the above code not working , can anyone suggest way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 03:49 AM
Hi,
category and subcategory on incident(current) is of choice type. So you need to use the backend value of category.
example : current.category ='given_category'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 04:44 AM
Hi @Virat05
if(producer.cyber_security == 'true')
{
current.category = 'category choice backend value';
current.subcategory = 'subcategory choice backend value';
}
Regards,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 05:12 AM
Hi @Virat05 ,
Please try with below code
if(producer.cyber_security == true || producer.cyber_security == "true")
{
current.category = 'given category'; // backend name
current.subcategory = 'given subcategory'; // backend name
}
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 05:42 AM - edited 05-29-2024 05:43 AM
Hi @Virat05 Try below code, its working
if(producer.cyber_security == "true")
{
current.category = 'category choice backend value';
current.subcategory = 'subcategory choice backend value';
}
Regards,
Sid