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
Post a Comment