Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.02 KB

File metadata and controls

59 lines (42 loc) · 1.02 KB

Move custom field to after description

Move custom field to after description.
カスタムフィールドを説明の後ろに移動します。

Setting

Path Pattern

None

Insert Position

Bottom of issue detail

Code

JavaScript

$(function() {
  // Note: Change the ID according to the custom field you want to target.
  const customField = $('.cf_1.attribute');

  const secondAttributes = $('<div class="attributes">').append(
    $('<div class="splitcontent">').append(
      $('<div class="splitcontentleft">').append(
        customField)));

  const description = $('.description');

  if (description.size() == 1) {
    $('.description').after(secondAttributes);
  } else {
    $('.attributes').after(secondAttributes);
  }
});

Result

Before

before

After

after