Scripted creation of custom fields / Migrate configuration between environments

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Stride

Get Started in Stride in 3 Easy Steps

Get started on Stride in 3 easy steps   If you’re new to Stride, welcome! We’re super excited to have you aboard. Stride is easy to use and set up, so don’t worry about reading tons of borin...

54 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you