Atlassian community, we recently implemented JIRA Service Desk 2.0.2, and our team is very nervous about comments defaulting to "Respond to customer" versus "Internal comment". They're very afraid someone is going to say, "This dummy doesn't know what he's talking about," and actually send that to the customer. Is there a way to set it so comments default to "Internal comment"?
Norman,
I had to run a Javascript interval to "look" for the comment tabs, because they don't exist on the page when it first gets loaded. Below is the code I implemented in the announcement banner.
<script type="text/javascript"> var commentTabsAreAlreadyShowing = false; setInterval(function(){ var tabs = jQuery("#sd-comment-tabs"); if (tabs.size() > 0 && !commentTabsAreAlreadyShowing) { commentTabsAreAlreadyShowing = true; jQuery(".js-sd-internal-comment").children("a").eq(0).click(); } else if (tabs.size() == 0) { commentTabsAreAlreadyShowing = false; } }, 100); </script>
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.
Cloud has had javascript hacks like this disabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a new Add-On available. It is called Doublecheck for JIRA Service Desk and is available at https://marketplace.atlassian.com/plugins/com.accxia.sd.plugins.tailor.tailorman-sd-confirm/server/overview.
It is not changing the default behaviour. Instead, for better user experience it simply adds a confirmation dialog whenever a user is about to send a comment to external customers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Heiko,
This looks like a good Add-On but way too pricey for us. This is $4,900 for 1,000 users per year. To put into perspective, eazyBI is only $4,000 per year and ScriptRunner is just $3,000 per year. This should cost no more than $800 to be a serious proposition. Someone in your organisation has got their sums badly wrong IMHO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also enjoy how their screenshots show the "Comment internally" and "Share with Customer" are swapped - as this entire thread is about. Yet do they address that? No. Let's sell an EXTREMELY overpriced app that offers functionality that is offered already in a far cheaper and more powerful app (i.e. ScriptRunner).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @NCATS LAB
Any hints on how to achieve Doublecheck functionality with ScriptRunner on Cloud?
Cheers
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.
For JIRA 7, you can use this snippet:
<script type="text/javascript"> var commentTabsAreAlreadyShowing = false; setInterval(function(){ var tabs = jQuery(".sd-comment-buttons"); if (tabs.size() > 0 && !commentTabsAreAlreadyShowing) { commentTabsAreAlreadyShowing = true; jQuery(".sd-internal-submit").parent("span").insertBefore(".sd-comment-buttons span:first"); jQuery(".sd-internal-submit").addClass("aui-button-primary"); jQuery(".sd-external-submit").removeClass("aui-button-primary"); } else if (tabs.size() == 0) { commentTabsAreAlreadyShowing = false; } }, 100); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, Atlassian has disabled javascript execution in the announcement banner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated the code to work with JSD 3.5 and JIRA 7.3.6, using the same idea as the original.
<script type="text/javascript"> var commentTabsSwapped = false; setInterval(function(){ var tabs = jQuery("#sd-comment-tabs"); if (tabs.size() > 0) { commentTabsSwapped = jQuery(".js-sd-internal-comment").prev(".js-sd-external-comment").size() == 0; if(!commentTabsSwapped) { jQuery(".js-sd-internal-comment").after(jQuery(".js-sd-external-comment")); jQuery(".js-sd-internal-comment").switchClass("inactive", "active"); jQuery(".js-sd-external-comment").switchClass("active", "inactive"); } } else if (tabs.size() == 0) { commentTabsSwapped = false; } }, 100); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I updated your code to make a switch back possible to an external comment:
<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.
Hi @Christian Pascher, this script is exactly what I am looking for. Thanks for providing it. however, I am not a developer, where would I put this script?
I am using Service Desk cloud.
Cheers,
Jeff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am interested in this work around, if anyone could provide a few more details on how to implement on JIRA Service Desk - Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also interested in a solution for JSD Cloud. Has anyone found any solution yet?
Kind regards,
Michelle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To hide "share with customer" button you can add this following script to the announcement banner:
<style type="text/css">
button.aui-button.aui-button-primary.sd-external-submit {
display: none;
</style>
It will hide the button on the view screen. But you will continue to see "Respond to customer" tab in the edit screen and transitions screens.
This is for Jira Server ( I didn't test for Cloud )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Improved the script a little. This is working in Jira 8.8.0/JSD 4.8.0
<script type="text/javascript">
var commentTabsAreAlreadyShowing = false;
setInterval(function(){
var tabs = jQuery(".sd-comment-buttons");
if (tabs.size() > 0 && !commentTabsAreAlreadyShowing) {
commentTabsAreAlreadyShowing = true;
if(jQuery(".sd-comment-buttons span:first").attr("original-title") === "Press Ctrl+Alt+e to submit this form") {
jQuery(".sd-comment-buttons span:first").insertAfter(".sd-comment-buttons span:nth-child(2)");
jQuery(".sd-external-submit").removeClass("aui-button-primary");
jQuery(".sd-internal-submit").addClass("aui-button-primary");
jQuery(".sd-internal-submit").css("background-color", "#0052cc");
}
}
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@NCATS LAB Big caveat, please update your code above so that you have an enclosing </script> at the bottom of it.
I just copied your code and added it into the Announcement Banner as is, and it ended up breaking all JIRA Administration pages.
Appreciate you sharing the script out though!
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,
Thanks for sharing the script.
It doesn't seem to work in Jira 8.13.3/JSD 4.13.3. Is there an environment parameter or some other configuration change that re-enables javascript? Or can you write this in CSS? Perhaps you (or anybody else) knows where we can edit the relevant code in the relevant jar file?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can try using JSIncluder
https://marketplace.atlassian.com/apps/1211670/jsincluder?hosting=server&tab=overview
https://github.com/mailru/jira-plugins-jsincluder
Or Scriptrunner's Web Resource functionality
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ryan Hoke,
Off topic, but have you ever considered finding out why your support engineers think about your customers the way they do, if they actually write things down like "This dummy doesn't know what he's talking about"? ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Was thinking relatively the same question but, at the same time, in our case the need is more to prevent escalated tickets containing testing notes to be sent to the clients as those usually end up creating a bunch of confused calls to helpdesk. :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is it is not about engineers being rude, and your smug emoticon/comment makes me think you have not really worked in a real service org. The reality is that political discussion and brainstorming take place in a fast paced, high-tech product support organization and since EVERY comment is logged in Service Desk it is just simply irresponsible for Jira to make the absolute determination about who sees what without a simple user control.
While I love Jira as a new user, it clearly shows signs of being stuck in an R&D mental silo, but hopefully that will change. It's a bit annoying that everything becomes a plug-in. Makes me wonder if Atlassian has an actual R&D department or they've cash cowed the core already. I mean, how complex is this architecture if they cannot find the time to change a single button default in the main SD application after what seems like a few years of requests??? It is really discouraging.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you think of Jira as a raw potato you will be less disappointed. I also was expecting french fries and got a raw potato. Switching your frame of reference makes its much better to work with, the important part is to make sure you have a deep fryer on hand if you want french fries, or a masher salt and butter and cream cheese if you want mashed potatoes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't forget all the extra cash to pay for the deep fryer, oil, salt, butter, and cream cheese.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't get me wrong, I love Jira! It has incredible flexibility like raw potato as you say. Its just that the potato has a few blemishes so some of my French fries have to be thrown away to follow the analogy... and then I have to buy some extra fries from some other vendor to make up the gap! Now I'm hungry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community, none of these Scripts worked for me, I have tried all of them by pasting the Scripts in the "Comment" field's description in the Field Configuration.
Are scripts disabled in JIRA 7.2 Service Desk or is there a different place I should paste script ? Please share your experience, if it is possible to change the default order of the "Respond to Customer" tab to "Internal Comment" ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue listed above is not actually for what the question addresses. The correct issue to vote on is here: https://jira.atlassian.com/browse/JSD-1733
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Setting a default value is still an outstanding issue for JIRA. https://jira.atlassian.com/browse/JRA-9091
There are two possible solutions though. The first is paid plugin.
https://marketplace.atlassian.com/plugins/com.redmoon.jira.comment-security-default
The second is doing some creative javascript code.
https://developer.atlassian.com/display/JIRADEV/How+to+Set+Default+Comment+Security+Level
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Norman, sorry it took so long to get back to you. This doesn't work for me, because the issue is with Service Desk and the whole "Respond to Customet" vs. "Internal Comment" tabs. There is no comment level select to grab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The tabs corresponds to the security level, so you can add some javascript to make sure that the internal tablis either first so it selected by default or force the internal comment tab to be highlighted when the comment button is clicked.
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.
Note, the document: https://developer.atlassian.com/display/JIRADEV/How+to+Set+Default+Comment+Security+Level, which is linked above, is no longer available. The JavaScript described in the document is not supported by Atlassian, and the JavaScript no longer works with JIRA 4.2+ anyway.
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.