Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

release fix version on a transition

Sumedh Ganta March 25, 2019

Hi 

I am trying to release fixversion upon closing/resolving our change workflow. Can someone please help ?

-Sumedh

1 answer

0 votes
Jack Brickey
Community Champion
March 25, 2019

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?

  1. In the first case you would want to have a custom field where you would place say the "Target Version". Edit the workflow transition to Done to copy the custom field into the Fix version field.
  2. In the second you simply need to create a screen that had the Fix Version field displayed and add that screen to the transition in the workflow. You should also add a Validate action to require the Fix Version to be entered.
Sumedh Ganta March 25, 2019

I mean to release the version in fix version field to be released/closed in the project upon transition. 

Jack Brickey
Community Champion
March 25, 2019

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.

Sumedh Ganta March 25, 2019

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)

 

 

source : https://community.atlassian.com/t5/Jira-questions/Releasing-project-version-using-Transitions/qaq-p/132492

Suggest an answer

Log in or Sign up to answer