Forums

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

How to grab the description of a Sub-task using javascript and GET

Devi Foskett June 4, 2019

I am attempting to grab the description of a sub-task in order to use it as a template for an extension that automatically makes sub-tasks. I need to be able to grab the description using a url. So far I am able to grab all of the pages html, but not specifically the description. I am using javascript primarily. I would like to be able to get the description without any "Hitches".

Code:

var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);

}
});

xhr.open("GET", "https://jira2.cerner.com/browse/ION-25843?As a=&As%20a=");
xhr.setRequestHeader("Cache-Control", "no-cache");

xhr.send(data);

0 answers

Suggest an answer

Log in or Sign up to answer