Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do i set the default JIRA comment tab to "Internal Comments"?

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

4 answers

Hi @Bastian Stehmann 

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

Hello, @Bastian Stehmann ,

Can this script be run for legacy comments?

Hi @Mamta Kalwani ,

I don't know what you mean with legacy comments. 

@Bastian Stehmann 

I am importing issues into JSD and the comments all need to be set to internal. Will this script work for that?

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.

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>

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?

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.

Hi @Bastian Stehmann

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.

Like Alex Lecoq likes this

Yes, that worked on server to set the comment to default to internal. 

Olga Videc Community Leader Jul 03, 2019

Hello @Bastian Stehmann 

Is there a way to reverse this for public comment?

To set public comment as default?

BR, Olga

Hi Olga,

 

Just remove the script, then it should be back to default, which is a public comment.

Like Olga Videc likes this

@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. 

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.

Like Harp likes this

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. 

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!

I'm sorry, I don't know a way to change the order of the tabs.

 

@Bastian Stehmann 

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.

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 

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,

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

762 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you