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

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

How about using CreateCustomField Jelly tag?

Ah yes, can do this as well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

196 views 1 3
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