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 @vdidk
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.
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.