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

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

John McElroy May 08, 2012

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

0 votes
Azwandi Mohd Aris May 08, 2012

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.

John McElroy May 09, 2012

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?

Azwandi Mohd Aris May 09, 2012

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

John McElroy May 10, 2012

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.

John McElroy May 10, 2012

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

JamieA May 10, 2012

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

John McElroy May 10, 2012

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

John McElroy May 10, 2012

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.

Azwandi Mohd Aris May 18, 2012

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase

Friday Fun: What's your best vacation planning hack?

Let's face it, work can be challenging but fulfilling, especially when you enjoy the challenges thrown at you.  However for me, nothing compares to going on vacation (or holiday as some of you m...

576 views 29 4
Join discussion

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