Do you mean the options currently selected on a custom field for a particular issue, or the whole list of possible options for the field for a given project and issuetype?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
issue.getCustomFieldValue(customfield) will return an array of the currently selected options, which you can then iterate over to get the list of options. (Sorry, I don't use python, but that's the java api call which will do the job)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
cfm = ComponentManager.getInstance().getCustomFieldManager()
cf=cfm.getCustomFieldObjectByName("CustomFieldName")
example=issue.getCustomFieldValue(cf) // returns error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://docs.atlassian.com/jira/6.2.1/com/atlassian/jira/issue/Issue.html
this page says it returns object. are you sure it returns array ? also what is the type of array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, an array of options IS an object. Your variable "example" will look like a generic object, but if you delve into it, you'll find it's an array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.