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

I have been having trouble getting back a specific issue from Jira via Ajax/Jquery. Everytime I get a 401 error code

Here is my code for more context:


<button>Get Issue</button>
        <script type="text/javascript">
            AJS.toInit(function() {
var button =   AJS.$("button"){
  url: "",
  type: "GET",
  beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Basic XXXXXXXXX"); xhr.withCredentials = true; },
dataType: "json", success: function(msg){ console.log(msg); }, error:function(msg){ console.log(msg); } });  }) }); </script> </ac:plain-text-body>

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

5,345 views 4 6
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