Name

global.ScrumAjaxDragCheckerReleaseToSprint

Description

ScrumAjaxDragCheckerReleaseToSprint

Script

var ScrumAjaxDragCheckerReleaseToSprint = Class.create();
ScrumAjaxDragCheckerReleaseToSprint.prototype = Object.extendsObject(AbstractAjaxListDragChecker, {
 draft_state: -6,

 isDragEnabledForItem: function(record){ 
    if (!this.hasPermission(record))
       return false;    
    else
       return true;
 },

 hasPermission: function(record){
    return ScrumSecurityManager.canWriteStoryDotSprint(record);
 },

 getDisabledMessageForItem: function(record){
    if (!this.hasPermission(record))
       return gs.getMessage("Cannot move because you do not have permission");
    else
       return "";
 },

 getTableName: function(){
    return "rm_story";
 }
});

Sys ID

8054579437301000dadaa3549dbe5d84

Offical Documentation

Official Docs: