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

Internal comment as Default in JIRA Service Desk

Dev Poudel August 18, 2017

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
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2019

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?

0 votes
Becc
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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
TAGS
AUG Leaders

Atlassian Community Events