cgaspard / mantiskanban

Mantis Kanban that uses ajax and mantisconnect
45 stars 33 forks source link

enhancement - additional config.js options #10

Closed dreed47 closed 10 years ago

dreed47 commented 11 years ago

I'd like to suggest 3 new config.js options as detailed below.

Kanban.PrefixIssueIdOnToolTip = true; // about line 308 of kanbanclasses.js // var titlePrefix = Kanban.PrefixIssueIdOnToolTip ? this.ID + ": " : ""; // storyContainerDiv.setAttribute("title", titlePrefix + this.Summary.htmlencode());

Kanban.PrefixIssueIdOnSummary = false; // about line 343 of kanbanclasses.js // var summaryPrefix = Kanban.PrefixIssueIdOnSummary ? this.ID + ": " : "";
// storyDivTitle.innerHTML = summaryPrefix + this.Summary;

Mantis.IgnoreStatusIds = ["20","30","40","82","90"]; // about line 212 of index.js // if(!~jQuery.inArray(status.id, Mantis.IgnoreStatusIds)) { // Kanban.AddListToArray(new KanbanList(status)); // }

cgaspard commented 11 years ago

I think all those are doable.

Ignoring statuses would mean they can't be selected in the edit form as well. So I'll have to modify that code as well.

I'm just curios, what is the reason you would want to ignore a status? Seems like someone using the Mantis interface might drop some issues into that status, and you would never know it if you only used the Kanban interface..

dreed47 commented 11 years ago

For us putting a status of hold essentially takes an issue out of the release so we wouldn't want to see it in the board

dreed47 commented 11 years ago

some of my code fixes for this ticket https://github.com/dreed47/mantiskanban

cgaspard commented 10 years ago

I'm going to move this to the suggestion issue, and close this one out.