how to forbid workflow transitions on the issues which have released version in fixVersion field?
if fixVersion is unreleased (probably every assosiated version is unreleased) then transitions should be available.
tnx
This condition seems a little bit exotic and in this case Groovy enters the field for me. I'd suggest this Groovy workflow condition, of course you must have the Groovy Script Runner Plugin installed.
passesCondition = true
versionManager = ComponentManager.getInstance().getVersionManager()
releasedVersions = versionManager.getVersionsReleased(issue.getProjectObject().getId(), true)
versions = issue.getFixVersions()
if (releasedVersions != null && versions != null) {
versions.each() {
if (releasedVersions.contains(it)) {
passesCondition = false
}
}
}
i believe this should be it, just all of a sudden the issue's become unnecessary. but tnx for idea, i'll keep in mind that script plugin, looks like a very helpful tool. tnx for answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This condition seems a little bit exotic and in this case Groovy enters the field for me. I'd suggest this Groovy workflow condition, of course you must have the Groovy Script Runner Plugin installed.
passesCondition = true
versionManager = ComponentManager.getInstance().getVersionManager()
releasedVersions = versionManager.getVersionsReleased(issue.getProjectObject().getId(), true)
versions = issue.getFixVersions()
if (releasedVersions != null && versions != null) {
versions.each() {
if (releasedVersions.contains(it)) {
passesCondition = false
break
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.