On a particular transaction in a workflow, a screen will be poped up to the user and user is expected to fill few fileds on the screen but along with those fields even cooments is also getting added to the screen. So, I had inserted below code in the descrition of one of the fields, t worked in the server version of JIRA but the samething is not working in cloud instance. And top of it, the script is also getting displayed in the scree below that field.
Could someone please help e on this on how to achieve this in cloud instance.
Below is the code used:
<script type="text/javascript">
if(AJS.$('#issue-workflow-transition-submit').val() =='Verify Trainings'){
AJS.$('div.comment-input').css('display', 'none');
}
</script>