Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner - list custom fields

Mindaugas Gelumbauskas April 16, 2018

Hello,

Does anyone have a script that would list:

  • all custom fields and their types
  • all unused custom fields and their types

?

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

Hello,

Use ComponentAccessor.getCustomFieldManager().getCustomFieldObjects() to get all available custom fields.

to see unused custom fields, you have to define what unused means. If the ones, that are not on the screen, then have a look the following thread:

https://community.atlassian.com/t5/Jira-questions/How-to-get-fields-on-Screen/qaq-p/603131

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events