Last active
July 31, 2020 01:17
-
-
Save mabushiisign/936d2131e46bd492022963f40787669c to your computer and use it in GitHub Desktop.
Redmineのガントチャートに担当者を表示する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 利用プラグイン | |
// 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