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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.