Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

John McElroy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Azwandi Mohd Aris
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2012

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

John McElroy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2012

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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?

TAGS
AUG Leaders

Atlassian Community Events