Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Low
-
Resolution: Not a bug
-
Component/s: Ecosystem
-
Labels:
-
Bug Fix Policy:
Description
NOTE: This bug report is for JIRA Cloud. Using JIRA Server? 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.
Attachments
Issue Links
- is related to
-
JRASERVER-45502 Response of GET /rest/api/2/user/properties always empty
-
- Closed
-
-
JRACLOUD-60326 Update Rest API documentation to clarify about /rest/api/2/user/properties/{propertyKey}
- Closed
- relates to
-
JRACLOUD-59760 GET /rest/api/2/user/properties/{propertyKey} Returns Error 404
-
- Closed
-