Forums

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

Using the issue collector in React without jQuery

Daniel Cernogorsky
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!
July 7, 2022

Is it possible to use the issue collector in React without jQuery?

I have read all of the issue collector questions here and have looked at examples in GitHub with no luck.

My next attempted will be to just use the API and create my own dialogs, but Id rather use whats available if possible.

3 answers

0 votes
Thomas Hoppe
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!
September 5, 2024

Without jQuery I get `Uncaught ReferenceError: jQuery is not defined`. I assume it's required by the issue collector then.

0 votes
Jörgen Dijk
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!
March 1, 2023

Had a simular like issue with VueJS.

 

In VueJS you can add VanillaJS like this:

    mounted() {
      let recaptchaScript = document.createElement('script')
      recaptchaScript.setAttribute('src', '{{Atlassian.net_collector_url}}')
      document.head.appendChild(atlassianScript)
    },

Source that helped:

https://stackoverflow.com/questions/56411378/how-to-add-vanilla-javascript-to-vue-js-project 

 

Hope this will help someone out searching for this.

0 votes
Oliver
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!
July 29, 2022

Same here, our application works with VueJs and without jQuery. It were fine, when the collector is written in Vanilla JS. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events