Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,867
Community Members
 
Community Events
165
Community Groups

Log warning "There is not exactly one config for this scheme ({}). Configs are {}.".

Hello,

We have an Jira server app in the marketplace called "edit custom field values". A client of ours gets the following warning "There is not exactly one config for this scheme ({}). Configs are {}." when interacting with our app.

I have since determined that this has to do with calling the following Jira function in the class `FieldConfigSchemeImpl.class`.

@Nullable
public FieldConfig getOneAndOnlyConfig() {
MultiMap configsByConfig = this.getConfigsByConfig();
if (configsByConfig != null) {
if (configsByConfig.size() == 1) {
return (FieldConfig)configsByConfig.keySet().iterator().next();
}

log.warn("There is not exactly one config for this scheme ({}). Configs are {}.", this.id, configsByConfig);
}

return null;
}

Apparently our client has more than one field configuration in a scheme, which causes the function above to return a null value that causes a problem the code of our app.

I have difficulty reproducing the issue our client is experiencing. I'm unable to get more than one field configuration in a scheme.

Does anyone know how I could get this done? Or how to make is so our client doesn't have two configurations for one scheme?

I have already tried to create a field configuration scheme and field configurations in settings > issues.

If there are gaps in the information I provided, let me know and I'll elaborate.

 

Thanks in advance.

1 answer

0 votes
Brant Schroeder Community Leader Jul 22, 2021

@Mark Jansen Welcome to the Atlassian community.  Sounds like something got corrupted.  I would suggest submitting an issue to Atlassian support. https://support.atlassian.com/contact/

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

228 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you