Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 851 Bytes

File metadata and controls

49 lines (35 loc) · 851 Bytes

Disable custom field if parent issue is set

Disable custom field if parent issue is set.
親チケットが設定されたらカスタムフィールドを無効にします。

Setting

Path Pattern

None

Insert Position

Bottom of issue form

Code

JavaScript

$(function() {

  const changeDisabled = function() {
    if ($('#issue_parent_issue_id').val() != '') {
      // Note: Change the ID according to the custom field you want to target
      $('#issue_custom_field_values_1').prop('disabled', true);
    }
  }

  $('#issue_parent_issue_id').on('change', changeDisabled);

  changeDisabled();
});

Result

result