Scripted creation of custom fields / Migrate configuration between environments


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?


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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

62 views 0 4
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