It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In Issue navigator section javascript is not working

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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you