Skip to content

TWalkerVeracity/SlashcommandArchive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slashcommand Archive

This repo serves as my personal archive of slashcommand that I can't live without since I'm often switching client remote desktops and laptops and wanted a easy place to go to import them all at once. There is a slashcommands.json file that you can use to import the commands in bulk, and I've written a quick GitHub action to list them out one by one below so they can be grabbed a la cart.

Wiki

/shortcut

Special slashcommand, accessible via extension keyboard shortcut

My preferred keyboard bound slashcommand is the //tab command which just opens a fresh tab. I bind this to ⌥T.

//tab

/w

Widgets <search>

Search for widgets by name or id.

sp_widget_list.do?sysparm_query=nameLIKE$0^ORidLIKE$0^ORDERBYDESCsys_updated_on

/stats

Stats.do

Open the stats.do page, kinda silly since you can do /stats.do but I like it.

/stats.do

/gr

Groups <search>

Search for groups by name or get to the group table quickly.

sys_user_group_list.do?sysparm_query=nameCONTAINS$0^ORDERBYDESCsys_updated_on

/mca

My Companies Applications

Open the My Companies Applications page, useful for installing or updating internal apps.

/$mycompanyappsmgmt.do

/load

Load an update set

Opens the load update set page.

upload.do?sysparm_referring_url=sys_remote_update_set_list.do%3Fsysparm_fixed_query%3Dsys_class_name%3Dsys_remote_update_set&sysparm_target=sys_remote_update_set

/ag

Agile Board

Opens the Agile Board, about as good as a bookmark, but in a slashcommand.

/$agile_board.do#/sprint_planning

/sla

SLA Definitions <search>

Search for SLA definitions by name, or get to the SLA table quickly.

contract_sla_list.do?sysparm_query=nameLIKE$0^ORDERBYDESCname

/r

Roles <search>

Search for roles by name, or get to the role table quickly.

sys_user_role_list.do?sysparm_query=nameLIKE$0^ORDERBYname

/cc

Clear Cache

Opens the cache.do page, useful for clearing the cache. Use it in conjunction with the /cls command.

cache.do

/dbt

Data Broker Server Scripts <search>

Search for Data Broker Server Scripts by name, or get to the Data Broker Server Script table quickly.

sys_ux_data_broker_transform_list.do?sysparm_query=nameLIKE$0^ORDERBYname

/aclr

ACL Roles Relation <search>

Search for ACL Roles Relation by the role name, useful to see which ACLs that a role is affiliated with.

sys_security_acl_role_list.do?sysparm_query=sys_user_role.nameLIKE$0^ORDERBYDESCsys_security_acl

/elog

Event Log <search>

Shows the event log for the day, useful for checking if events have been queued and processed.

sysevent_list.do?sysparm_query=sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^nameLIKE$0^ORDERBYDESCsys_created_on

/uxem

UX Add-on Event Mappings for Macroponent

Shows the UX Add-on Event Mappings for the macroponent, useful for checking if events have been mapped correctly or fixing broken mappings. Intended to be run on a macroponent record.

sys_ux_addon_event_mapping_list.do?sysparm_query=parent_macroponent=$sysid

/alog

App Log for Current Scope

Shows the app log for the current scope for the day, way less cluttered than the general instance log.

syslog_app_scope_list.do?sysparm_query=sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^sys_scope=javascript:gs.getPreference("apps.current_app")^ORDERBYDESCsys_created_on

/errorlog

Syslog for today, only errors

Shows the syslog for the day, only showing errors and warnings.

syslog_list.do?sysparm_query=sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^levelIN2,3^ORDERBYDESCsys_created_on

/test

Example: Open in Test

Example slashcommand to open the the current record in the test environment. Double // invokes another command. Replace test with your instance prefix. (test.service-now.com)

//env test

/cmptest

Example: Compare to record in Test

Example slashcommand to open compare the current record with the test environment. Double // invokes another command. Replace test with your instance prefix. (test.service-now.com)

//diffenv test

/nus

New update set

Opens a new update set record, for your current scope.

sys_update_set.do?sys_id=-1

/mru

My recent updates

Shows the recent updates you have made, useful for checking your updates have been captured and in which update sets.

sys_update_xml_list.do?sysparm_query=sys_updated_by=javascript:gs.getUserName()^ORDERBYDESCsys_created_on

/logtail

View Node Logtail

Opens the logtail channel, useful for tailing the node logs. Can be useful in REST message processing debugging.

channel.do?sysparm_channel=logtail

/rcr

Role Contains Roles <search>

Search for roles that contain other roles, useful for checking role hierarchies.

sys_user_role_contains_list.do?sysparm_query=containsLIKE$0^ORDERBYnull

/cus

Current Update Set

Opens the current update set, no longer do you need to go through the header.

sys_update_set.do?sys_id=javascript:gs.getPreference('sys_update_set')

/nextlog

Enable NextExperience Logging

Enables logging in the NextExperience, useful for debugging. Does the same thing as the DEX extension.

javascript:window.nowUiFramework.setConfigItem("loggingEnabled",!0),window.nowUiFramework.setConfigItem("loggingLevels",["error","warn","info","debug","trace"]);

/retrieve

Remote Instances <search>

Navigate to the remote instances list to retrieve update sets from lower environments.

sys_update_set_source_list.do?sysparm_query=^ORDERBYname

/sj

Scheduled Jobs <search>

Search for scheduled jobs by name, or get to the scheduled job table quickly.

sysauto_list.do?sysparm_query=nameLIKE$0^ORDERBYname

/event

Event Registry <search>

Search for events by name, or get to the event registry table quickly.

sysevent_register_list.do?sysparm_query=event_nameLIKE$0^ORDERBYnull

/noti

Notifications <search>

Search for notifications by name, or get to the notification table quickly.

sysevent_email_action_list.do?sysparm_query=nameLIKE$0^ORDERBYorder

/running

Running Scheduled Jobs

Shows the scheduled jobs that are currently running, useful for checking on the completion of scheduled jobs.

sys_trigger_list.do?sysparm_query=next_actionONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^state=1^ORDERBYname

/ind

Indicators <search>

Search for PA Indicators by name, or get to the indicator table quickly.

pa_indicators_list.do?sysparm_query=type=1^nameLIKE$0^ORDERBYorder

/pasc

Scripts <search>

Search for PA Scripts by name, or get to the script table quickly.

pa_scripts_list.do?sysparm_query=nameLIKE$0^ORDERBYname

/roll

Script Execution Histories <search>

Show the most recent script executions, useful for grabbing code you've previously run in background scripts or rolling back runs.

sys_script_execution_history_list.do?sysparm_query=^ORDERBYnull

/fix

Fix Scripts <search>

Search for fix scripts by name, or get to the fix script table quickly.

sys_script_fix_list.do?sysparm_query=nameLIKE$0^ORDERBYname

/myups

Today's History Set Captures

Shows the history set captures you have made today, useful grabbing historical values from records when they aren't in the activity formatter and you don't have admin/glide.history.role.

sys_history_line_list.do?sysparm_query=userDYNAMIC90d1921e5f510100a9ad2572f2b477fe^update_timeONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^ORDERBYnull

/force

Force current record to current update set

Opens the script editor with a script that will force the current record to your current update set. Needs to switched to global scope to be run, but will place the update in the current update set.

/sys.scripts.do?scope=global&content=var%20current%20%3D%20new%20GlideRecord%28%22$table%22%29%3B%0Aif%20%28current.get%28%22$sysid%22%29%29%7B%0A%20%20%20%20gs.info%28current.getDisplayValue%28%29%29%3B%0A%20%20%20%20var%20um%20%3D%20new%20GlideUpdateManager2%28%29%3B%0A%20%20%20%20um.saveRecord%28current%29%3B%0A%7D

/csmrec

Opens the current record in CSM Workspace

Opens the current record in CSM workspace, super useful when you want to look at a record found using sys_id search or found in platform

/now/cwf/agent/record/$table/$sysid/params/selected-tab-index/0

/czn

Filters current table to only show records that have customer updates.

Uses a join query to filter the current table to only show records that have customer updates. I would love to make this a switch but the current implementation doesn't support it.

/$table_list.do?sysparm_query=^JOIN$table.sys_update_name=sys_update_version.name!source_table!=sys_store_app

About

An archive of my custom slashcommands for easy reuse.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published