Getting a field value in Read Mode

Version 2.1 by Normann P. Nielsen on 2026/11/15 15:44

From viewing the source:

div id="customfield_10901-val" class="value type-textfield" data-fieldtype="textfield" data-fieldtypecompletekey="com.atlassian.jira.plugin.system.customfieldtypes:textfield">

                                      servername

 

                           </div>



its possible to the the field value out.

Here, an alert will show we actually extracted the value:

<script language=javascript>
alert(AJS.$("#customfield_10901-val").text().trim());
</script>