Hi Friends,
I have created webresource plugin module to remove issuetypes in javascript I want to retrive jira database values using sqlprocessor or ao,
How would I use database values in IssueTypesResctictor.js ?
atlassian-plugin.xml***********************************************************
<web-resource key="IssueTypesRestrictor-js" name="javascript">
<dependency>jira.webresources:global-static</dependency>
<description>JavaScript</description>
<resource name="IssueTypesRestrictor.js" type="download" location="js/IssueTypesRestrictor.js" />
<context>atl.general</context>
<context>atl.admin</context>
</web-resource>
IssueTypesResctictor.js***********************************************************
jQuery(document).ready(function($)
{
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
hide();
});
hide();
function hide()
{
$("#issuetype option").each(function()
{
if($.trim($(this).text()) == 'Bug')
{
$(this).remove();
}
});
}
});
***************************************************************************
Thanks in advance
&
Best Regards
Onkar Ahire