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 Sign up to answer
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

46 views 0 0
View post

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