what do you mean "release fixversion". Do you mean you want to automatically set the Fix Version when moving to done? or are you saying you want to require the user to enter the fix version when resolving the issue?
I mean to release the version in fix version field to be released/closed in the project upon transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm still confused. It sounds like you want the version to be "released" when you transition an issue to done. if that is what you mean then that means a release is limited to one issue, i.e. issue:release is a 1:1 relationship. Regardless, AFAIK there is no way to automate the Release function. It is either done on a Kanban board or on the Releases page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure if you knew about this VersionManager
I have seen some users doing this. Background on the process We are implementing a change process which takes all dev tickets to production at once. We tag those with single version, once the change is complete I want to close that version. Hope I am making sense here.
I know those simple postfunctions and validations, but I am novice at groovy. May be you can help me with customizing this script and how to use it.
Script:
import com.atlassian.jira.component.ComponentAccessor
def project = ComponentAccessor.getProjectManager().getProjectByCurrentKey("PROJECT KEY")
def versionManager = ComponentAccessor.getVersionManager()
def version = versionManager.getVersion(project.getId(), issue.getFixVersions())
versionManager.releaseVersion(version, true)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.