Hi,
I have jira server plugin.
I saved my proerty like this
url: `/jira/rest/api/2/project/${projectKey}/properties/MyProp`,
type: 'PUT',
contentType: 'application/json',
dataType: "json",
data: JSON.stringify(entityProperty)
and I get the success response. I try to find this property on server side using Java. I can`t find it in my property set.
ProjectPropertiesManager manager;
PropertySet propset = manager.getPropertySet(project);
May be there is another place to look. Any suggestions?
In case someone searches for an answer
@JiraImport
ProjectPropertyService projectPropertyService;
JiraAuthenticationContext authenticationContext = ComponentAccessor.getJiraAuthenticationContext();
ApplicationUser user = authenticationContext != null ? authenticationContext.getLoggedInUser() : null;
EntityPropertyService.PropertyResult result = projectPropertyService.getProperty(user, project.getKey(), "MyProp");
EntityProperty property = result.getEntityProperty().getOrNull();
Hi @[deleted]
Read https://developer.atlassian.com/server/jira/platform/entity-properties/
These values can be indexed by Jira and queried via REST API or JQL.
Try the REST call given there to retrieve the property value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you for the response, but info in this link doesn`t mention Java objects all. Unfortunately still don`t have answer for my problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.