In Issue navigator section javascript is not working

Sarika Dalal
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2019

Hi Team,

 

I have created one web item its location in jira.issue.tool section.

On click of this web item, I have configured Javascript and on the issue view screen this javascript is working fine but when in issue navigator section (Project side panel on click of Issues) this javascript is not working. 

JS Web Resource Definition in Atlassian-plugin.xml file

<web-resource name="Resources" key="resources">
   <resource name="showdata.js" type="download" location="/js/showdata.js"/>       

    <context>atl.general</context>
    <context>jira.navigator.advanced</context>
     <context>jira.navigator.simple</context>

</web-resource>



Web item define is Atlassian-plugin.xml file

<web-item name="mywebitem" i18n-name-key="mywebitem" key="mywebitem" section="jira.issue.tools" weight="0">
<description key="mywebitem">Testing</description>
<label key=""/>
<link linkId="mywebitem"></link>
<param name="iconClass" value="aui-icon-small aui-iconfont-comment"/>
</web-item>

Java script Code is below

AJS.toInit(function()
{
      alert("INIT DONE");
       AJS.$('#mywebitem').click(function()
       {
            alert("SARIKA123-0000");
       });
});

 

 

Please give me a suggestion here about what I am missing here.

Trying from 2 days Nothing is working here.

 

Thanks in Advance

 

0 answers

Suggest an answer

Log in or Sign up to answer