Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redmineのガントチャートに担当者を表示する
// 利用プラグイン
// Redmine view customize plugin
// https://github.com/onozaty/redmine-view-customize
//
// ガントチャートに担当者を表示する
// パスのパターン: /issues/gantt
// 挿入位置: 全ページのヘッダー
// 種別: JavaScript
//
$(function() {
var issueCount = $(".issue_assigned_to").length;
var assignedTos = $(".issue_assigned_to");
for (var i = 0; i < issueCount; i++) {
var issueId = assignedTos.get(i).getAttribute("data-collapse-expand");
var label = $(".task.leaf.label[data-collapse-expand='" + issueId + "']");
if (label.length == 1) {
var assignUser = assignedTos.get(i).textContent;
label.text(label.text() + " " + assignUser);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.