Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 _neusta portal services_ 

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>

Hello @Bastian Stehmann _neusta portal services_, 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 _neusta portal services_

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 _neusta portal services_ 

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 _neusta portal services_ 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 _neusta portal services_ 

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 _neusta portal services_  

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 _neusta portal services_ 

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 

@Bastian Stehmann _neusta portal services_ 

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.

Hello, @Bastian Stehmann _neusta portal services_ ,

Can this script be run for legacy comments?

Hi @Mamta Kalwani ,

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

Suggest an answer

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

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

209 views 1 6
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