Storing a List in PropertySet

Jamie Astin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2019

I would like to store a list in a `PropertySet` attached to a Jira user, e.g.

List<String> animals = Arrays.asList(new String[] { "Cat", "Dog", "Parrot"});
properties.setObject("animals", animals);

Given that `ArrayList` is Serializable I would expect this to work. However, when attempting to execute this code I am getting the following exception:

com.opensymphony.module.propertyset.PropertyImplementationException: Invalid property type: 8
at com.atlassian.jira.propertyset.OfBizPropertyTypeRegistry.mapper(OfBizPropertyTypeRegistry.java:72)
at com.atlassian.jira.propertyset.OfBizPropertyTypeRegistry.mapper(OfBizPropertyTypeRegistry.java:65)
at com.atlassian.jira.propertyset.CachingOfBizPropertyEntryStore$SetOperation.<init>(CachingOfBizPropertyEntryStore.java:570)
at com.atlassian.jira.propertyset.CachingOfBizPropertyEntryStore.createSetOperation(CachingOfBizPropertyEntryStore.java:161)

 

0 answers

Suggest an answer

Log in or Sign up to answer