I'm trying to extract a custom fields' dropdown options into a CSV file. I run the following code and I get this error. What am I doing wrong?
You need to use the endpoint https://{yourjira}.atlassian.net/rest/api/3/field/customfield_{id}/context/{fieldConfigId}/option
This will give you a JSON with the list of options for the specific customfield context.
If you would like to have a list of contexts for the customfield, use the Endpoint
https://{yourjira}.atlassian.net/rest/api/3/field/customfield_{id}/context
Hope this helps!
I now get this message: "Only Jira administrators can access custom field contexts."
Anyway around not needing to be admin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot get the customfield options for a specific context wothout being a Jira Admin.
If you want to see the list of options you can choose for a specific issue's customfield, then use the Endpoint
/rest/api/3/issue/{issueIdOrKey}/editmeta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.