Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

issue collector for angularjs

Matt Fiocca June 17, 2016

We were given this issue collector snippet to embed on our app:

<script>
jQuery.ajax({
	url: "[jira_collection_url]",
	type: "get",
	cache: true,
	dataType: "script"
});
</script>

The problem, is that we are using AngularJS, and do not make use of jQuery. We've added jQuery for the sole purpose of rendering the issue collector into our pages, but once the feedback button is clicked, jQuery is reporting  the error: `Uncaught TypeError: a.indexOf is not a function`. I suspect its because we have angular and jquery running side by side, and something is goofed.

Does anyone know if there is an angular implementation of the issue collector?

4 answers

1 accepted

0 votes
Answer accepted
Matt Fiocca August 30, 2016

The problem was jQuery 3.x. Dropping our version to 1.12 fixed the problem.

0 votes
Matt Fiocca August 30, 2016

I just posted our fix as the answer to this. it was our version of jQuery. $(window).on('load', function(){}); was producing the same issue for us.

 

0 votes
Vana Bharathi Raja T
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2016

I fixed the issue by placing the given script inside the $(window).on('load', function(){});

0 votes
Vana Bharathi Raja T
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2016

Hi Matt,

Even I'm getting the same error, Can you share the fix If you found the solution for it.

--

Vana

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events