Last active
September 3, 2019 16:13
-
-
Save chuikoaleksandr/1c82be1e7064ac433a7028f47b6cf9d4 to your computer and use it in GitHub Desktop.
Atlasteam, Jira, plugin JsIncluder. Set fixVersion. For https://atlasteam.ru/?p=1925
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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