Forums

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

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
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
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events