Skip to content

Instantly share code, notes, and snippets.

@scolton99
Created August 10, 2018 13:32
Show Gist options
  • Save scolton99/7831e3aa024c11e6b7e845e3d03cc97b to your computer and use it in GitHub Desktop.
Save scolton99/7831e3aa024c11e6b7e845e3d03cc97b to your computer and use it in GitHub Desktop.
Generating a textual list of assignment groups in BMC FootPrints
(function () {
let referralBox = document.getElementsByName("fieldArea0")[0];
let groups = referralBox.querySelectorAll("option");
let txt = "";
groups.forEach(
function (e) {
if (e.textContent === "+Individual Users")
return;
txt += e.textContent.substr(1) + "\n";
}
);
handle = window.open();
txt = "<pre>" + txt + "</pre>";
handle.document.write(txt);
}).call(this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment