- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 09:26 AM
javascript: current.sys_class_name == 'cmdb_ci_batch_job'? 'cmdb_ci.sys_id=cmdb_ci_batch_job.batch_job' : ['incident', 'problem'].indexOf(current.sys_class_name + '') == -1? '' : 'operational_statusNOT IN' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join()
This is the recent code, any idea how to exclude the business application from the results?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 09:50 AM
Hi @Abigail
can you please try below -
current.sys_class_name == 'cmdb_ci_batch_job'
? 'cmdb_ci.sys_id=cmdb_ci_batch_job.batch_job'
: (current.sys_class_name == 'business_application'
? ''
: ['incident', 'problem'].indexOf(current.sys_class_name + '') == -1
? ''
: 'operational_status NOT IN ' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join())
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 09:50 AM
Hi @Abigail
can you please try below -
current.sys_class_name == 'cmdb_ci_batch_job'
? 'cmdb_ci.sys_id=cmdb_ci_batch_job.batch_job'
: (current.sys_class_name == 'business_application'
? ''
: ['incident', 'problem'].indexOf(current.sys_class_name + '') == -1
? ''
: 'operational_status NOT IN ' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join())
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Regards,
Tushar