Value Mapping
This chapter focuses on the value mapping .
Get value mapping
A GET
to /projects/{id}/value-mappings-script
returns the value mapping of the given project.
HTTP request
GET /api/rest/latest/projects/14/value-mappings-script HTTP/1.1
Accept: application/json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 73
{
"_type" : "value-mapping",
"script" : "valeurjira4:valeursquash4"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the type of the entity |
|
|
the mapping script.The mapping is suitable for the YAML syntax. It currently works for the criticality, category and status fields |
Edit value mapping
A POST
to /projects/{id}/value-mappings-script
set or edit the value mapping for the given project.
HTTP request
POST /api/rest/latest/projects/14/value-mappings-script HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 73
Host: localhost:8080
{
"_type" : "value-mapping",
"script" : "valeurjira1:valeursquash1"
}
Path parameters
Parameter | Description |
---|---|
|
the id of the project |
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 73
{
"_type" : "value-mapping",
"script" : "valeurjira1:valeursquash1"
}