Scripted creation of custom fields / Migrate configuration between environments

Thomas Buckel July 14, 2016

Hi,

I'm looking for an ideally automated process to create custom fields and assigning them to issue types for JIRA 6.1. As right now we can't easily upgrade to JIRA 7 (I believe newer REST API versions have methods for creating custom fields), any suggestions? Code/scripts would be fine, but would want to avoid writing a plugin.

We are also a cost effective way to migrate configuration between environments (UAT/production) and found Botron's Configuration Manager, but cost is relatively high. Are there any alternatives?

Thanks,
Thomas

1 answer

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.
July 18, 2016

You can do the whole thing programatically, although the API changed between 6 and 7, so you need to bear that in mind.

Creating CFs is simple (com.atlassian.jira.bc.customfield.CustomFieldService#validateCreate), assigning them to projects/issue types is via com.atlassian.jira.issue.fields.config.manager.FieldConfigSchemeManager#updateFieldConfigScheme

(that's JIRA 7, 6 is similar)

Suggest an answer

Log in or Sign up to answer