Script includes retrieving department head
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:07 AM
Im trying to retrieve with an reference qualifier and my client script the department head of the department selected in my configuration item and fill it in manager field in my CI but It doest work :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:18 AM
Hi @Teteziho ,
Can u try calling ur script include in below manner from ur reference qualifier after javascript : paste below line
new EmboardingLibrary().retrieveDepartmentHead(current.variables.department);
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:23 AM
it does not trigger because I need to first of all choose one of the department in my CI and after that it should take his departement head and copy it to manager field in my configuration item. but It does nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:24 AM
javascript: new EmboardingLibrary().retrieveDepartmentHead(current.variables.department);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:25 AM
Hi @Teteziho ,
Ok in that case can we create a on Change client script & make the above script include as client callable or create a new script include?
Thanks,
Danish