Wiki source code of Getting a field value in Read Mode
Version 1.1 by Normann P. Nielsen on 2026/11/15 15:44
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | From viewing the source: | ||
| 2 | |||
| 3 | |||
| 4 | {{code}} | ||
| 5 | div id="customfield_10901-val" class="value type-textfield" data-fieldtype="textfield" data-fieldtypecompletekey="com.atlassian.jira.plugin.system.customfieldtypes:textfield"> | ||
| 6 | |||
| 7 | servername | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | </div> | ||
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | {{/code}} | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | its possible to the the field value out. | ||
| 21 | |||
| 22 | Here, an alert will show we actually extracted the value: | ||
| 23 | |||
| 24 | |||
| 25 | {{code}} | ||
| 26 | <script language=javascript> | ||
| 27 | alert(AJS.$("#customfield_10901-val").text().trim()); | ||
| 28 | </script> | ||
| 29 | {{/code}} |