カスタムフィールドの一括削除はできますか?

changeworld July 28, 2016

私の前の管理者がたくさん(50個以上)のカスタムフィールドを設定しました。
しかし、今ではそれらは使われていないことがわかりました。
そのため、私は使用していないすべてのカスタムフィールドを削除したいです。
しかし、一括で削除するボタンやチェックボックスが見つからず、管理画面からカスタムフィールド毎にトグルマークをクリックし、個別に削除を選択し続けなければなりません。
これは大変でとても退屈な作業です。カスタムフィールドの一括削除はできないでしょうか?

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 8, 2016

There's generally no need to have a bulk-delete of a custom field.  It's not often people delete them, and when they do, it's usually only one or two at a time.

changeworld August 8, 2016

Thanks for the answer.
It is a very painful reality ....

0 votes
OHSAKI Kengo [Ricksoft]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2017

今更ですが...

JIRA管理画面のカスタムフィールドの削除処理は

<BASE URL>secure/admin/DeleteCustomField.jspa のリクエストポイントで削除しているので、そのリクエストポイントに削除に必要なパラメータを渡してあげて、一括で消すという方法は技術的にはあるかもしれませんね。

例えば、以下のようなJavaScriptを

JIRA管理画面開きながらChromeのconsoleで実行するとか?

https://developers.google.com/web/tools/chrome-devtools/console/?hl=ja

var array = [消したいカスタムフィールドIDを列挙];
for(var i = 0; i < array.length; i++) {
var postData = {id: array[i], atl_token: AJS.$('meta#atlassian-token').attr('content')};
AJS.$.ajax({
type : 'POST',
dataType : 'html',
url : contextPath + "/secure/admin/DeleteCustomField.jspa",
cache : false,
async : false,
data : postData,
success : function(updateData, textStatus, xhr) {
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
return;
}
});
}

 

まぁ、面倒ですが確認しながら消すほうがいい気もしますけど…技術的にはという回答でした。

Suggest an answer

Log in or Sign up to answer