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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.