Hi
I know this is a widely discussed topic but I cannot find a simple script to switch the tab to internal comment on a transition screen.
This requirement is because agents are required to log time at the triage step on a transition screen but managers want to ensure the comment being public is intentional.
People used to do this with the javascript in the description of the field but that's not possible any more.
That may be a good suggestion for a feature enhancement to behavior.
But why couldn't this be achieved with javascript in the description?
This works in a simple test (using announcement banner for applying globally)
<script>
AJS.$(document).ajaxComplete(function () {
AJS.tabs.change(AJS.$('.js-sd-internal-comment').find('a'));
});
</script>
Because sadly they disabled javascript in field description in version 7
JS was the first thing I tried when I saw posts about it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm on 7.13.2 and have no problem using javascript in field descriptions.
I see other posts about it being disabled... but I'm not sure why my environment still works.
That being said... I don't typically use field descriptions for javascript injections.
You could just create a Script Fragment via scriptrunner and deploy your own javascript file in a given context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register today
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.