Get Custom Fields by Project and Issue Type

I am using below code for getting custom fields available for a project and issue type.

ComponentAccessor.getCustomFieldManager().getCustomFieldObjects(project.getId(), issueType) 

The problem is, when I configure my custom field's visibility for a particular project and issue type, I don't get the correct result. But when I configure my custom field for a project only, then I get the correct result. So, there is something wrong when I assign an issue type to it.

Is there any known issue, that custom fields are not correctly returned when they are assigned to issue types? 

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

445 views 6 16
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot