Skip to content

Commit d1d591b

Browse files
author
Alex Reyes
committed
Fixed defect URLs.
1 parent 62b9d35 commit d1d591b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ This is a fork of http://agilecommons.org/posts/b35b10484a .
22

33
New features:
44

5-
* click on a user story ID to open the story in a new browser tab
65
* click on a task ID to open the task in a new browser tab
7-
* add a task to a story
6+
* click on a user story ID to open the story in a new browser tab
7+
* click on a defect ID to open the defect in a new browser tab
8+
* add a task to a story or defect

code.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,12 @@
168168
});
169169
html.push('<div class="state">' + state.display(false, value.ScheduleState=='Accepted') + '</div>');
170170

171-
html.push('<div class="id"><a href="/slm/detail/ar/' + value.ObjectID + '" target="story-window">' + value.FormattedID + '</a></div>');
171+
var regexp = /^DE/;
172+
var detail_type = 'ar';
173+
if( regexp.test( value.FormattedID ) ) {
174+
detail_type = 'df';
175+
}
176+
html.push('<div class="id"><a href="/slm/detail/' + detail_type + '/' + value.ObjectID + '" target="story-window">' + value.FormattedID + '</a></div>');
172177
html.push('<div class="name">' + RALLY.toolkit.niceSubstring(value.Name, 100) + '</div>');
173178
html.push('<div class="' + ownerClass.join(' ') + '">' + owner + '</div>');
174179

0 commit comments

Comments
 (0)