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
Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...
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