Hi Atlassian,
I am able to get/set Jira project property with API.
Currently I need to get it from my jira plugin using getEntityProperty.
It worked with Jira 7.x perfectly, but for Jira 8.x I get the following error:
java.lang.NoSuchMethodError: com.atlassian.jira.entity.property.EntityPropertyService$PropertyServiceResult.getEntityProperty()Lcom/atlassian/fugue/Option;
...........
Below is my java code to get the property:
ApplicationUser user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
ProjectPropertyService projectPropertyService =
ComponentAccessor.getComponent(ProjectPropertyService.class);
EntityPropertyService.PropertyResult propertyValues =
projectPropertyService.getProperty(user, proj_id, SEARCH_KEY);
Option<EntityProperty> jsonValues = propertyValues.getEntityProperty();
EntityProperty value1 = jsonValues.getOrNull();
JSONObject result = new JSONObject(value1.getValue().toString());
str = result.get("string").toString();
Thanks,
Hello @Mamikon Papikyan ,
I believe I have just answered this question in another thread you created:
However, in short:
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.