Hi atlassian,
I have jira versions 7.x and 8.x and I want to build jira plugin to get two jar files. For jira version 7.x getEntityProperty() method returned:
com.atlassian.fugue.Option<EntityProperty> class type,
for jira version 8.x:
io.atlassian.fugue.Option<EntityProperty> class type,
I check the versions with statement, here my code:
if (version.equals("7")) {
com.atlassian.fugue.Option<EntityProperty> jsonValues =
propertyValues.getEntityProperty();
entity = jsonValues.getOrNull();
} else {
io.atlassian.fugue.Option<EntityProperty> jsonValues =
propertyValues.getEntityProperty();
entity = jsonValues.getOrNull();
}When the jira version is 7.x in my pom.xml I get the following error:
package io.atlassian.fugue does not exist
and the case when version is 8.x:
incompatible types: io.atlassian.fugue.Option<com.atlassian.jira.entity.property.EntityProperty> cannot be converted to com.atlassian.fugue.Option<com.atlassian.jira.entity.property.EntityProperty>
How can I solve this problem for in order to my plugin work for both jira versions?
Thanks in advance,
@Mamikon Papikyan