Name

global.ScrumAjaxDragCheckerSprint

Description

ScrumAjaxDragCheckerSprint

Script

var ScrumAjaxDragCheckerSprint = Class.create();
ScrumAjaxDragCheckerSprint.prototype = Object.extendsObject(AbstractAjaxListDragChecker, {
 isDragEnabledForItem: function(record){
    if (!this.hasPermission(record))
       return false;    
    //else if (record.state == "2")
       //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 if (record.state == "2")
       //return gs.getMessage("Cannot move because the state of this Story is Work in progress");
    else
       return "";
 },

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

Sys ID

ed2b026b37101000dadaa3549dbe5dc7

Offical Documentation

Official Docs: