public class ProjectPropertyApi extends Object
| Constructor and Description |
|---|
ProjectPropertyApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
deleteProjectProperty(String projectIdOrKey,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete project property
Deletes the property from a project.
|
io.reactivex.Single<EntityProperty> |
getProjectProperty(String projectIdOrKey,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project property
Returns the value of a project property.
|
io.reactivex.Single<PropertyKeys> |
getProjectPropertyKeys(String projectIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project property keys
Returns all project property keys for the project.
|
io.reactivex.Single<Object> |
setProjectProperty(String projectIdOrKey,
String propertyKey,
Object body,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set project property
Sets the value of the project property.
|
public ProjectPropertyApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Completable deleteProjectProperty(String projectIdOrKey, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes the property from a project.
This operation can be accessed anonymously.
Permissions required: Administer Jira global permission or Administer Projects project permission for the project containing the property.
projectIdOrKey - The project ID or project key (case sensitive).
(required)propertyKey - The project property key. Use Get project property keys to get a list of all project property keys.
(required)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> getProjectProperty(String projectIdOrKey, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the value of a project property.
This operation can be accessed anonymously.
Permissions required: Browse Projects project permission for the project containing the property.
projectIdOrKey - The project ID or project key (case sensitive).
(required)propertyKey - The project property key. Use Get project property keys to get a list of all project property keys.
(required)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> getProjectPropertyKeys(String projectIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all project property keys for the project.
This operation can be accessed anonymously.
Permissions required: Browse Projects project permission for the project.
projectIdOrKey - The project ID or project key (case sensitive).
(required)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> setProjectProperty(String projectIdOrKey, String propertyKey, Object body, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Sets the value of the project property. You can use project properties to store custom data against the project.
The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.
This operation can be accessed anonymously.
Permissions required: Administer Jira global permission or Administer Projects project permission for the project in which the property is created.
projectIdOrKey - The project ID or project key (case sensitive).
(required)propertyKey - The key of the project property. The maximum length is 255 characters.
(required)body - (required)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.