Forums

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

Custom Field Manager returning wrong list of custom fields(doesn't have project id in field context)

Deleted user October 18, 2021 edited

Hi Team,

We have developed a custom build Jira plugin. In AUI select dropdown field we are fetching custom fields based on their project context by using following method:

private final CustomFieldManager cfm = ComponentAccessor.getCustomFieldManager();

private List<CustomField> projectSpecificCustomFields(Long projectId, List<String> issueTypes) {

return cfm.getCustomFieldObjects(projectId, issueTypes);

}

In my local Jira software with Jira version 8.17.1, custom fields are getting fetched as expected and I am able correctly extract custom fields in which project is present in custom field context.

But in our Jira Test Instance(Data Center version 8.19.0), Custom fields of type Project Specific Select field ( i.e custom fields created using Project Specific Select field plugin) are appearing in the dropdown list even though those fields are not present in custom field context.[i.e cfm.getCustomFieldObjects(projectId, issueTypes); is giving me the Project Specific Select fields which are not having the specified projectId in the field context ]

Can you please help me understand why custom fields created using Project Specific select field plugin is not getting filtered in our Jira test instance? Is there any compatibility issue?

0 answers

Suggest an answer

Log in or Sign up to answer