For customfields, iterate through customFieldManager.getCustomFieldObjects(); For each one, use getCustomFieldType() for the "type"
For the system fields, you have two problems. First, almost all of them are they're own "type", although they may eventually store similar data to other fields. Secondly, there's no list. To fix both of those issues, you have to know the list of all the types and code for each of them that you want to use explicitly. The method I remember is FieldManager.getField(IssueFieldConstants.<something> where <something> is an item from the constant list at https://docs.atlassian.com/jira/latest/index.html?com/atlassian/jira/issue/CustomFieldManager.html
The API provides methods for reading fields, but some fields are read differently from others. issue.get<something> works for most, but not the ones with more involved structures. Start at https://developer.atlassian.com/jiradev/api-reference and work your way down to the issue object
It started as any story starts, on a normal, rainy day. Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...
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!
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