Name
global.ScrumStoryDeepCopy
Description
No description available
Script
var ScrumStoryDeepCopy = Class.create();
ScrumStoryDeepCopy.prototype = Object.extendsObject(global.DeepCopy, {
initialize: function() {
var gr = new GlideRecord('rm_story');
gr.initialize();
this.parentStateVal = gr.state.getAttribute('default_pending_state');
if (gs.nil(this.parentStateVal))
this.parentStateVal = "-6";
this.parentFieldsToCopy = [
"acceptance_criteria", "assigned_to", "assignment_group", "blocked",
"description", "epic", "product", "release", "short_description", "sprint",
"state", "story_points", "theme"
];
this.childTablesConfig = [{
"tableName": "rm_scrum_task",
"referenceFieldToParent": "story",
"fields": [
"assigned_to", "assignment_group", "blocked", "description", "planned_hours",
"priority", "short_description", "state", "type"
],
"stateVal": "-6"
}];
this.addTestManagementCofig();
},
type: 'ScrumStoryDeepCopy'
});
Sys ID
f0122f3f5b7a00109dac15233381c71e