This resource represents classification levels used in a project. Use it to view and manage classification levels in your projects.
Returns the default data classification for a project.
Permissions required:
read:jira-work
read:project:jira
Connect app scope required: READ
string
RequiredReturned if the request is successful.
any
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestJira(route`/rest/api/3/project/{projectIdOrKey}/classification-level/default`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
11
{
"classification": {
"id": "ari:cloud:platform::classification-tag/5bfa70f7-4af1-44f5-9e12-1ce185f15a38",
"status": "published",
"name": "Restricted",
"rank": 1,
"description": "Data we hold that would be very damaging and would cause loss of trust with customers and present legal risk if mishandled",
"guideline": "Access to data must be restricted to only individuals who need access in order to perform their job duties.",
"color": "RED"
}
}
Updates the default data classification level for a project.
Permissions required:
manage:jira-project
write:project:jira
Connect app scope required: ADMIN
string
Requiredstring
RequiredReturned if the request is successful.
any
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"id": "ari:cloud:platform::classification-tag/dec24c48-5073-4c25-8fef-9d81a992c30c"
}`;
const response = await api.asUser().requestJira(route`/rest/api/3/project/{projectIdOrKey}/classification-level/default`, {
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
Remove the default data classification level for a project.
Permissions required:
manage:jira-project
write:project:jira
Connect app scope required: ADMIN
string
RequiredReturned if the request is successful.
any
1
2
3
4
5
6
7
8
9
10
11
12
13
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestJira(route`/rest/api/3/project/{projectIdOrKey}/classification-level/default`, {
method: 'DELETE',
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
Rate this page: