Whats the (best) way to populate custom fields?

I have a customfield in which I want a list of potential build numbers i.e. 1 to 5000 I dont fancy doing this by hand for all our projects which will have the same filed.

1. Whats the best way to populate the field? Can I do it from a file? I couldnt seem to see anything in JCLI which might help but I may have missed the obvious.

2. Can you sort dropdowns e.g. most recent version is at the top

Many thanks

Nick

3 answers

1 vote

It's also pretty straightforward to do it with curl, or script your browser using webdriver. Well, straightforward if you've done it before.

Also see https://answers.atlassian.com/questions/92385/importing-project-from-another-jira-instance-how-do-we-mass-import-custom-field-multi-select-options?page=1#92622

Yes, this would be the easiest option.

0 vote

JIRA remote APIs don't support it yet and that is why CLI doesn't support it.

The best way might be to write a small servlet which programmatically add the options.

The easiest waut might be to add it in the database directly (customfieldoption table) as long as you know what you are doing. You will have to take JIRA offline, reindex once back up etc.

Ah yes, can do this as well.

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
Posted 9 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

32 views 0 5
Join discussion

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