How do i attain the javascript to use in my web apps for the JIRA Issue Collector?

I have downloaded the most recent beta version of the JIRA Issue Collector and installed it onto our JIRA 4.4.4 I was wondering how do get the javascript it mentions on the page (https://plugins.atlassian.com/plugins/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin) to help create the trigger in the web application?

1 answer

Once you installed the application in JIRA, you can go to any project's administration and find the "Issue Collector" tab. You can start configuring your collector and once submitted, JIRA will provide you the HTML code you can embed in your web application.

ok i have the code and tried a simple test but all it did was download but all it did was download a javascript file, is there more to this?

Where did you put this code, and can you provide the full code here?

Our simple test to paste the code insode into an html file to see if it will work with the jquery files imported to it, the code looked like this:

<html>
<head>
<script src="/jquery-ui-1.8.20.custom/js/jquery-1.7.2.min.js"></script>
<script>
$.ajax({
    url: "http://ohcolvmd0002v10.nwie.net/s/en_US9zvrva/664/2/1.0.23-beta/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=3af7bc04",
    type: "get",
    cache: true,
    dataType: "script"
});
</script>
</head>
</body>
</body>
</html>

When we run this is just downloads a javascript file with some javascript funciton in it. Is this process more involve then simply copy'n paste or do we need to write this functions out in this code.

this was the embedded code provided to me after we configured the collector

If you just pasted it into an html file, you'll need to specify the full URI for jquery, eg http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

just a quick not i did notice the space at the beginning of the script src i fixed that and tried again with no luck

well we are going to be putting it into jsp's once we understand how it is suppose to work properly. I changed the script import to this:

<html>
<head>
<script  src=" http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$.ajax({
    url: "http://ohcolvmd0002v10.nwie.net/s/en_US9zvrva/664/2/1.0.23-beta/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=3af7bc04",
    type: "get",
    cache: true,
    dataType: "script"
});
</script>
</head>
</body>
</body>
</html>

Then when that just got an activex blocker and then did nothing after i allowed it. so thinking that it was activating the script i did this

<html>
<head>
<script src=" http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
window.onload = jQuery.ajax({
    url: "http://ohcolvmd0002v10.nwie.net/s/en_US9zvrva/664/2/1.0.23-beta/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=3af7bc04",
    type: "get",
    cache: true,
    dataType: "script"
});
</script>
</head>
</body>
</body>
</html>

and the same thing happened as before, any ideas? Note I am rusty with html at the moment.so if I made an error please correct me.

Did you try other web browser? Perhaps, it's an IE-specific issue? Also, did you try the snippet for embedding directly in HTML, instead of an existing Javascript resource?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

44 views 2 4
View post

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