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 Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,142 views 6 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot