I have this simple js in velocity jira template. I need to sleep function and call function test but its not called at all. Can you elaborate into this issue why its not happening? issueNumber is velocity variable.
<script>
function test() {
var get = $issueNumber;
alert(get);
}
setTimeout(test, 5000);
test();
</script>