Skip to content

Commit da81c7f

Browse files
authored
Bookmarklet createupdateset (#999)
* Refactored the impersonation dialog Moved the impersonation dialog from a new tab into a popup window. The instance page is refreshed with the new user's context, but the location remains the same. * Create a new update set from a story record When viewing a story in PROD, create a new update set in DEV that contains data from the story record. * Delete Browser Bookmarklets/Impersonation/readme.md * Delete Browser Bookmarklets/Impersonation/impersonation.js
1 parent af17929 commit da81c7f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Browser Bookmarklets/Create new update set/create_update_set.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Create udpate set
2+
3+
When viewing a record in the rm_story table, this bookmarklet will create a update set in a DIFFERENT instance and enable you to pre-populate values. The example below will create an update set in the ficticious "MYDEV" instance and set the Name (`STRY1234 - Short Description`) and Description fields based on values taken from the story record. To use this bookmarklet, udpate the instance name and query string as needed.
4+
5+
```js
6+
javascript:
7+
var w=window.frames["gsft_main"]!==undefined?window.frames["gsft_main"]:window;
8+
var q="name="+w.g_form.getValue("number")+" - "+w.g_form.getValue("short_description")+
9+
"^description=Description: @"+w.g_form.getValue("description");
10+
top.open("https://MYDEV.service-now.com/sys_update_set.do?sys_id=-1&sysparm_query="+q);
11+
12+
```

0 commit comments

Comments
 (0)