Jon G Lind
ServiceNow Employee
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
6 hours ago
A Playbook that is not in the ReleaseOps scope will not execute
There is currently a bug in the business rule that fires playbooks for ReleaseOps in which it does not properly account for scope.
Here's how to fix it
- Select the scope ReleaseOps with the globe in the header.
- Go to System Definition > Business Rules
- Filter where Application = "ReleaseOps" AND Name Starts With "Run"
- Modify the two out-of-the-box business rules, setting Active = False (this way you are not modifying the existing business rule):
- Duplicate Each by opening and choosing Insert and Stay.
- Playbooks: "Run Release Playbook on Preparing" and "Run Assessment Playbook when Ready"
- Set Active = True
- Script: Find the "triggerPlaybook" line near the end and replace it:
// Find the following line near the end: // Run Assessment Playbook when Ready (approximately line 46) // Run Release Playbook on Preparing (approximately line 20) /* sn_playbook.PlaybookExperience.triggerPlaybook(grPlaybook.name, current); */ // And REPLACE it with: const scopeName = grPlaybook.sys_scope.scope; // Don't include scope name if calling to another ReleaseOps playbook const playbookName = (scopeName == 'sn_releaseops' ? '' : scopeName + '.') + grPlaybook.name; sn_playbook.PlaybookExperience.triggerPlaybook(playbookName, current);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

