Skip to content

Commit 9330004

Browse files
code_snippet.js
1 parent acf0dd4 commit 9330004

File tree

1 file changed

+13
-0
lines changed
  • Server-Side Components/Business Rules/Auto-generate Release Notes on Release Close

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This script gather change summaries and build notes.
2+
// After Business Rule on rm_release table
3+
(function(current, previous){
4+
if (current.state == 'closed'){
5+
var ch = new GlideRecord('change_request');
6+
ch.addQuery('release', current.sys_id);
7+
ch.query();
8+
var notes = [];
9+
while(ch.next()) notes.push(ch.number + ': ' + ch.short_description);
10+
current.u_release_notes = notes.join('\n');
11+
current.update();
12+
}
13+
})(current, previous);

0 commit comments

Comments
 (0)