![Jira 8 Administration Cookbook(Third Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/536/36698536/b_36698536.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
Proceed with the following steps to add JavaScript to custom field description:
- Log into Jira with a user that has a Jira administrator's permission.
- Navigate to Administration > Issues > Custom Fields.
- Click on the Edit link for the custom field.
- Enter the following JavaScript snippet into the Description text box, and click on Update. You will need to substitute it in your custom field's ID:
<script> AJS.$('#customfield_10103 option[value="- 1"]').remove(); </script>
The following screenshot shows that the Team custom field:
![](https://epubservercos.yuewen.com/D8A88C/19470378008804906/epubprivate/OEBPS/Images/3872f04e-1b0e-4620-a1a2-781a6b4a899a.png?sign=1738880694-3O2QwYmBdqhP63bPu1mTCK6DP3rCmLJv-0-b5c1719ea5b26e10fa7bbcb48e071634)
As you can see, the None option is no longer available.