Skip to content

Commit 0cab7e3

Browse files
authored
Create widget server script.JS
1 parent 476d4f1 commit 0cab7e3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(function() {
2+
var collabs = [];
3+
var gr = new GlideRecord('x_your_scope_collaborators');
4+
gr.addQuery('request', $sp.getParameter('request_id'));
5+
gr.query();
6+
while (gr.next()) {
7+
collabs.push({
8+
sys_id: gr.getUniqueValue(),
9+
name: gr.collaborator.name.toString(),
10+
status: gr.status.toString(),
11+
comments: gr.comments.toString()
12+
});
13+
}
14+
data.collaborators = collabs;
15+
})();

0 commit comments

Comments
 (0)