Pull jira defect using javascript -


here attempt @ pulling issue jira using javascript. have placed below confluence html macro , nothing. need authenticate inside java script tags ? if have suggestions or examples. know how authenticate user , password using python imagine different when using javascript

<html>  <head> <script> function postget(){ var url="http://**********/issues/rest/api/latest/issue/*****"; var sdata= ""; var client = new xmlhttprequest(); client.open("get", url, false); client.setrequestheader("content-type", "application/json"); client.setrequestheader("accept", "application/json"); client.send(sdata); document.getelementbyid("responsetext").innerhtml=client.responsetext;             } </script> </head>  <body> <input type="button" value="post get" onclick="postget()"> <p id="responsetext"></p> </body> </html> 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -