-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
7.0.0-OD-07, 7.0.9, 7.0.0
-
7
-
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Summary
As described here, a new REST API call was introduced in JIRA 7.0 that returns properties for a given user. However, it's always returning an empty array, no matter how many properties there are.
Expected behaviour
Return a set of properties for the given user.
Actual behaviour
An empty array is returned, which means no properties have been found for the given user.
Example
Call
localhost:8080/rest/api/2/user/properties?username=admin
Response
{"keys":[]}
Steps to Reproduce
- Add a key-value pair under properties on a user profile in JIRA;
- Try to list the property keys for this user with the below REST API call;
http://<jira-url>/rest/api/2/user/properties?username=myuser
- Observe the response returned is empty;
Workaround
At this point, there's no workaround for obtaining users' properties using a REST API call.
- is related to
-
JRASERVER-60326 Update Rest API documentation to clarify about /rest/api/2/user/properties/{propertyKey}
- Closed
-
JRASERVER-34105 Ability to set and get user properties using REST API
- Gathering Interest
- relates to
-
JRACLOUD-45502 Response of GET /rest/api/2/user/properties always empty
- Closed
-
JRASERVER-59760 GET /rest/api/2/user/properties/{propertyKey} Returns Error 404
- Closed