update custom field option in enterprise Jira server

sujoychakraborty93 July 1, 2021

hi,

1. we are on Jira server in our enterprise. Would like to know how to
- update a custom field option in a custom field 
- add a custom field option in a custom field

2. similar option for jira server as available on jira cloud platform here - https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-put

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2021

1. Log in as an admin and go to Admin -> Issues -> Custom fields, find your field and click "configure" next to it.  Select list type fields will present you with the current list of options and you can add/edit/delete the options 

2. Cloud works the same for company-managed projects.  Server doesn't have team-managed projects, so you don't need to think about the fields people have added individually there.

sujoychakraborty93 July 2, 2021

Hi @Nic Brough -Adaptavist- , thanks for your response. Actually even my first question was for the rest api  steps required to achieve point 1. Sorry for not clarifying that. 
So do you happen to have any rest api solution to update custom field options? I saw solutions available for cloud platform but did not find anything similar for enterprise server platform. 
Appreciate your help! 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 9, 2021

Not for Server - the REST API doesn't have the admin functions you need yet.

You'll need an app that can provide REST endpoints to do that work, or even replace whatever you're doing externally completely.

sujoychakraborty93 July 28, 2021

Thanks @Nic Brough -Adaptavist- . Is there a way we can build those apps inhouse for our server? 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2021

You could write apps that provide REST endpoints, yes. 

It might be worth looking in the marketplace for apps that have already been built to do it. 

A potentially useful halfway house might be Scriptrunner, as it can do all the work of a an app framework and all you'd need to write is the code that makes the updates behind the SR REST endpoint (yes, I work for Adaptavist, feel feel to see this line as an advert!)

Suggest an answer

Log in or Sign up to answer