Is there a way how to get all related customfields per project or issuetype? Searched the whole Internet but got no working results…
Hi,
Try to use FieldManager component.
it provides scope-based search of CustomFields.
BR.
I.F
Super, thank you! And some working code example?
Yes this snapshot here: List<FieldLayoutItem> fieldLayoutItems = ComponentAccessor.getFieldLayoutManager() .getFieldLayout(project, issueTypeId).getFieldLayoutItems(); for (FieldLayoutItem fieldLayoutItem : fieldLayoutItems) { String fieldKey=fieldLayoutItem.getOrderableField().getNameKey(); }
Then you can filter the customfields.
Bests,