public class UserPropertyApi extends Object
| Constructor and Description |
|---|
UserPropertyApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
deleteUserProperty(String propertyKey,
Optional<String> accountId,
Optional<String> userKey,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete user property
Deletes a property from a user.
|
io.reactivex.Single<EntityProperty> |
getUserProperty(String propertyKey,
Optional<String> accountId,
Optional<String> userKey,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user property
Returns the value of a user's property.
|
io.reactivex.Single<PropertyKeys> |
getUserPropertyKeys(Optional<String> accountId,
Optional<String> userKey,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user property keys
Returns the keys of all properties for a user.
|
io.reactivex.Single<Object> |
setUserProperty(String propertyKey,
Object body,
Optional<String> accountId,
Optional<String> userKey,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set user property
Sets the value of a user's property.
|
public UserPropertyApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Completable deleteUserProperty(String propertyKey, Optional<String> accountId, Optional<String> userKey, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a property from a user.
Permissions required:
Note: These user properties are unrelated to the user properties that are set in Jira.
propertyKey - The key of the user's property.
(required)accountId - The accountId of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192. Required.
(optional)userKey - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)username - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<EntityProperty> getUserProperty(String propertyKey, Optional<String> accountId, Optional<String> userKey, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the value of a user's property. If no property key is provided Get user property keys is called.
Permissions required:
Note: These user properties are unrelated to the user properties that are set in Jira.
propertyKey - The key of the user's property.
(required)accountId - The accountId of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192. Required.
(optional)userKey - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)username - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PropertyKeys> getUserPropertyKeys(Optional<String> accountId, Optional<String> userKey, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the keys of all properties for a user.
Permissions required:
Note: These user properties are unrelated to the user properties that are set in Jira.
accountId - The accountId of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192. Required.
(optional)userKey - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)username - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> setUserProperty(String propertyKey, Object body, Optional<String> accountId, Optional<String> userKey, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Sets the value of a user's property. Use this resource to store custom data against a user.
Permissions required:
Note: These user properties are unrelated to the user properties that are set in Jira.
propertyKey - The key of the user's property. The maximum length is 255 characters.
(required)body - (required)accountId - The accountId of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192. Required.
(optional)userKey - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)username - This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.