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.

1 answer

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Service Desk

Looking for teams who switched from email to Jira Service Desk

The Jira Service Desk marketing team is working on a guide to help new Atlassian customers switch from email to JSD and we'd love to hear from you! Please share: - What made you realize that i...

116 views 1 3
View question

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