We are JIRA 7.6 datacenter/server.
Is it still possible to add javascript to the announcement banner? I am looking to add a column to the Issues in Epic table and found the following code:
<script type='text/javascript'>
AJS.$(document).ready(function() {
AJS.$('#ghx-issues-in-epic-table tr').each(function(){
console.log('Found epic table');
var row = this;
var issueKey = AJS.$(this).attr("data-issuekey");
AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
console.log('Got data for - ' + issueKey);
var value = data.fields.customfield_10600;
console.log('Value - ' + value);
var actions = AJS.$(row).find('td.issue_actions');
AJS.$(actions).before('<td class="nav">' + value + '</td>');
});
});
});
</script>
When adding this to the Announcement Banner, the code displays as plain text in the banner. Can anyone help out a javascsript nube??