Skip to content

Commit af17929

Browse files
authored
Bookmarklet create story task (#995)
* 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 Story Task When viewing a story record, this bookmarklet will create a new child task record and pre-set defined values. * Delete Browser Bookmarklets/Impersonation/readme.md This file was captured by mistake and is included in another branch. * Delete Browser Bookmarklets/Impersonation/impersonation.js This file was captured by mistake and is included in a different branch.
1 parent 36e41ec commit af17929

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Browser Bookmarklets/Create story task/create_story_task.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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Create a new story task
2+
3+
When viewing a record in the rm_story table, this bookmarklet will create a new child task and enable you to pre-populate values. The example below will create a task of type `Testing` and set the short description to `Test STRY12345 - Short Description` where the story number and short description values are taken from the story record.
4+
5+
```js
6+
javascript:
7+
var w=window.frames["gsft_main"]!==undefined?window.frames["gsft_main"]:window;
8+
var q="parent="+w.g_form.getUniqueValue()+
9+
"^type=4"+
10+
"^short_description=Test "+w.g_form.getValue("number")+" - "+w.g_form.getValue("short_description")+
11+
"^EQ";
12+
top.open("rm_scrum_task.do?sys_id=-1&sysparm_query="+q);
13+
```

0 commit comments

Comments
 (0)