Regularily generate fix-versions by script

arminb2909 March 9, 2014

I have several projects for which I enter new fix-version in a regular weekly pattern. Can a script generate new fix-versions?

2 answers

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2014

Yes, have a look at com.atlassian.jira.project.version.VersionManager#createVersion, eg

import com.atlassian.jira.component.ComponentAccessor

def projectManager = ComponentAccessor.getProjectManager()
def project = projectManager.getProjectObjByKey("ABC")

def versionManager = ComponentAccessor.getVersionManager()
versionManager.createVersion("1.1", new Date() + 7, "the description", project.id, null)

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2014

I regularly do this as part of my release process using JIRA Command Line Interface using addVersion . Similarly for releasing versions.

You can do this from a command line script using the JCLI client or if you use Confluence, it can be easier using CLI Plugin for Confluence and a page like:

Suggest an answer

Log in or Sign up to answer