File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ This is a fork of http://agilecommons.org/posts/b35b10484a .
22
33New 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
Original file line number Diff line number Diff line change 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 = / ^ D E / ;
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
You can’t perform that action at this time.
0 commit comments