Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Atlasteam, Jira, plugin JsIncluder. Set fixVersion. For https://atlasteam.ru/?p=1925
function setFixVersion(version) {
var val = AJS.$("#fixVersions").val();
val = val ? val : [];
val.push(version.id);
AJS.$("#fixVersions").val(val);
AJS.$("#fixVersions-textarea").val(version.name).blur();
}
var versions = [
{
id: 10000,
name: 'version 1'
},
{
id: 10001,
name: 'version 2'
}
];
versions.forEach(function (version) {
setFixVersion(version)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.