
Announcements
Hello everyone!
I am trying to extract a text from a cell in JIRA Service Management, but instead of returning the text inside this cell it is returning me [object Object].
Could someone help me to overcome this?
This is the code I am using, but I also tried a lot others:
function ExecuteScript()
{ var targetNode = document.querySelector("#customfield_12240-val"); var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { var x = document.querySelector("#customfield_12240-val .shorten span").textContent; if (x) { observer.disconnect(); return JSON.stringify({ text: x }); } }); }); observer.observe(targetNode, { childList: true, subtree: true }); }