Internal comment as Default in JIRA Service Desk Edited

I made a plugin with webresources MODULE as:

<web-resource key="MYplugin-resources" name="MYplugin Web Resources">
    <dependency>com.atlassian.auiplugin:ajs</dependency>
    <resource type="download" name="MYplugin.css" location="/css/MYplugin.css"/>
    <resource type="download" name="MYplugin.js" location="/js/MYplugin.js"/>
    <resource type="download" name="images/" location="/images"/>
    <context>servicedesk.general</context>
<context>jira.general</context>
  </web-resource>

Myplugin.js has following code:

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);

 But  I cannot see the change.

2 answers

0 votes
Becc Roach Atlassian Team Sep 13, 2018

Hi Dev, 

Thanks so much for your question. 

If you're still experiencing this problem, can you please provide us with some more details so we can better help debug the issue.

Thank you,

Jira Service Desk

Hi @Dev Poudel

We are also looking for the set Internal comment as by default could you please provide the steps how you been done this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 15, 2019 in Jira Service Desk

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

357 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you