Hello,
Im using cloud version of Jira.
Jira Service Desk Application 3.3.0
Is there a simple way to change the default comment tab at Service Desk to Internal Comment instead of "Share with costumer"?
Please provide step by step guide
From your instruction, "Go to your field configuration, choose one field that is shown on the screen, Click edit and paste the JS into the description field."
I'm having a bit of trouble finding what exactly you were talking about, do you think you can provide some images?
Thanks in advance!
-Steve
Hi @Zohar Bazak,
welcome to the community.
I am sorry, but as far as I know, there is no simple way to do this.
You can do that by adding this Java Script to a field description in your field configuration for a field, that is on your screens.
<script type="text/javascript">
var initialTabHighlightSwapped = false;
function checkJSDCommentTabs () {
var tabs = jQuery("#sd-comment-tabs");
if (tabs.size() > 0 && !initialTabHighlightSwapped) {
switchJSDCommentTabHighlight();
initialTabHighlightSwapped = true;
} else if (tabs.size() == 0) {
initialTabHighlightSwapped = false;
}
}
function switchJSDCommentTabHighlight () {
jQuery(".js-sd-internal-comment").click();
}
var intervalFunct = setInterval(checkJSDCommentTabs, 1000);
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bastian Stehmann, thanks for the answer.
Can you provide step by step guide on how to add this Java Script on the cloud based version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Zohar Bazak,
I am not sure, if this works on Cloud, tried it on server only.
Go to your field configuration, choose one field that is shown on the screen, Click edit and paste the JS into the description field.
That's it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this code will work for Comment in JSD?
what i want is by default it should select as "Internal Comment" but not respond to customer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that worked on server to set the comment to default to internal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bastian Stehmann
Is there a way to reverse this for public comment?
To set public comment as default?
BR, Olga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olga,
Just remove the script, then it should be back to default, which is a public comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bastian Stehmann I pasted the Script exactly as you have described in the description for the Comment field in the field configuration and it is not working. I am using JIRA 7.2.4 version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know why but it does not work if you put it in the description of the comment, you have to put it in the description of another field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply @Bastian Stehmann
I just tried it in a different Field's description in the Field Configuration and it didn't work either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh wait, I just re-tired after clearing the cache and it worked, Thanks a lot @Bastian Stehmann
The default selection now is Internal Comment, is there a way to switch the order of the tabs ? Thanks Again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry, I don't know a way to change the order of the tabs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to implement this on our JIRA instance (7.12.3) and have been unsuccessful so far. any suggestions? any particular field it should go in? any help would be much appreciated.
Thanks,
Chris A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked on Jira 8.5.1 and service desk 4.5.1. Do not paste javascript code to comment field's description. Paste it to another field which will be shown on screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This did not work on JIRA 8.15.1 and JSM 4.15.1 or JIRA 8.20.1 and JSM 4.20.1 It just showed the script under the field,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
It doesn't work anymore on JSM 5.4.3
Mostly because the comments Buttons are now buttons and not tabs anymore.
Does someone has a working script for the newest JSM version ?
Thanks
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.
Hi @Mamta Kalwani ,
I don't know what you mean with legacy comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am importing issues into JSD and the comments all need to be set to internal. Will this script work for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ebehrmann@mathematica-mpr.com ,
Welcome to the community.
This script won't help you in this case, as this only sets the default tab to internal comment instead of share with customer. So it works only if you add comments manually, not when importing them.
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.