View customize plugin の v3.3.0 をリリースしました。
挿入位置として「チケット一覧のコンテキストメニュー」を追加しています。(マージリクエストをいただきました)
コンテキストメニューに対してカスタマイズする際には、下記のサンプルのような感じでちょっと面倒だったのですが、、
$(function() { // Replace the show function in jQuery to add processing when the context menu is shown jQuery.fn._show = jQuery.fn.show; jQuery.fn.show = function() { if (this.attr('id') == 'context-menu') { const a = $('#context-menu a[href*="status_id%5D=6"]'); a.attr('href', a.attr('href') + '&issue%5Bfixed_version_id%5D=none'); } return jQuery.fn._show.apply(this, arguments); }; });
下記のようにシンプルに書くことができます。
const a = $('#context-menu a[href*="status_id%5D=6"]'); a.attr('href', a.attr('href') + '&issue%5Bfixed_version_id%5D=none');