The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript in 'Message Custom Field'

[]D []-[] [] []_
Contributor
April 17, 2013

Hi there,

I'm trying to render an HTML-Tag with Javascript via 'Message Custom Field':

<script type="text/javascript">
infobox = document.createElement('div');
infobox.setAttribute('class','infoBox');
infobox.setAttribute('id','infofield');
infobox.style.margin = '0px 16px 16px';
node = document.createElement('span');
node.innerHTML = 'TEXT';
infobox.appendChild (node);
document.getElementById('stalker').appendChild(infobox);
</script>

The Infobox is displayed on the View-Issue-Screen as its supposed but the Problem occurs when a transition is triggered: The spinnging Loading-Icon appears and .... nothing happens, it spinns forever.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 17, 2013

it means it is throwing some error, you can check this by using firebug on mozila or javascript console in crome