-
Notifications
You must be signed in to change notification settings - Fork 19
/
App-debug.html
99 lines (92 loc) · 4.26 KB
/
App-debug.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Copyright (c) 2011 Rally Software Development Corp. All rights reserved -->
<html>
<head>
<title>Kanban Board</title>
<meta name="Name" content="App: Kanban Board"/>
<meta name="Version" content="2013.04.09"/>
<meta name="Vendor" content="Rally Software"/>
<script type ="text/javascript" src="https://rally1.rallydev.com/apps/1.32/sdk.js?apiVersion=1.41&debug=true"></script>
<script type="text/javascript" src="Kanban.js"></script>
<script type="text/javascript" src="KanbanCardRenderer.js"></script>
<script type="text/javascript" src="KanbanColumnRenderer.js"></script>
<script type="text/javascript" src="KanbanConfig.js"></script>
<script type="text/javascript" src="KanbanPolicy.js"></script>
<script type="text/javascript" src="KanbanReport.js"></script>
<link rel="stylesheet" type="text/css" href="Kanban.css">
<script type="text/javascript">
//this function will help us by getting our default project and workspace to help with external kanban development.
var WORKSPACE_OID,PROJECT_OID,PROJECT_SCOPE_UP,PROJECT_SCOPE_DOWN;
function projectParser(response) {
var meta = response.QueryResult.Meta;
var numberYankingRegex = /[^\d]/g;
WORKSPACE_OID = meta.workspace.replace(numberYankingRegex, '');
PROJECT_OID = meta.project.replace(numberYankingRegex, '');
}
</script>
<script type="text/javascript">
/*configure following if you plan to run the Kanban app externally
rally.sdk.info.server = "https://community.rallydev.com/slm";*/
// var WORKSPACE_OID = "1234";
// var PROJECT_OID = "54678";
// var PROJECT_SCOPE_UP = false;
// var PROJECT_SCOPE_DOWN = true;
/********************************/
var projectOid = '__PROJECT_OID__';
projectOid = projectOid.indexOf("__") !== -1 ? PROJECT_OID : projectOid;
var workspaceOid = '__WORKSPACE_OID__';
workspaceOid = workspaceOid.indexOf("__") !== -1 ? WORKSPACE_OID : workspaceOid;
var projectScopeUp = '__PROJECT_SCOPING_UP__';
projectScopeUp = projectScopeUp.indexOf("__") !== -1 ? PROJECT_SCOPE_UP : projectScopeUp;
var projectScopeDown = '__PROJECT_SCOPING_DOWN__';
projectScopeDown = projectScopeDown.indexOf("__") !== -1 ? PROJECT_SCOPE_DOWN : projectScopeDown;
function onLoad() {
var rallyDataSource = new rally.sdk.data.RallyDataSource(workspaceOid,
projectOid, projectScopeUp, projectScopeDown);
rallyDataSource.projectOid = projectOid;
rallyDataSource.workspaceOid = workspaceOid;
rallyDataSource.projectScopeUp = projectScopeUp;
rallyDataSource.projectScopeDown = projectScopeDown;
var kanbanBoard;
rallyDataSource.find({
key: 'WorkspaceConfiguration',
type: 'WorkspaceConfiguration',
fetch: 'DragDropRankingEnabled'
}, function(results) {
var isManualRankWorkspace = !results.WorkspaceConfiguration[0].DragDropRankingEnabled;
kanbanBoard = new KanbanBoard(rallyDataSource, isManualRankWorkspace);
kanbanBoard.display(dojo.body());
}
);
}
rally.addOnLoad(onLoad);
</script>
</head>
<body>
<div style="display:none">
<div id="configPanel">
<div id="configHelp"></div>
<div id="stateDropdown"></div>
<table id="configTable" cellspacing="15">
<tbody id="configTableBody">
<tr class="tableHeaderRow">
<td>Column</td>
<td>Display</td>
<td>WIP Limit</td>
<td>Schedule State Mapping</td>
</tr>
</tbody>
</table>
<div id="hideCardsCheckBox"></div>
<div id="showTasksCheckBox"></div>
<div id="showDefectsCheckBox"></div>
<div>
<span id="showAgeCheckBox"></span>
<span id="showAgeTextBox"></span>
</div>
<div id="colorByArtifactTypeCheckBox"></div>
<div id="msgContainer"></div>
</div>
</div>
</body>
</html>