This resource represents app access rule data policies.
Returns data policy for the workspace.
read:jira-work
Connect app scope required: READ
This request has no parameters.
Returned if the request is successful
Details about data policy.
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/data-policy`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
{
"anyContentBlocked": false
}
Returns data policies for the projects specified in the request.
read:jira-work
Connect app scope required: READ
string
Returned if the request is successful.
Details about data policies for a list of projects.
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/data-policy/project`, {
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
12
13
14
15
16
{
"projectDataPolicies": [
{
"dataPolicy": {
"anyContentBlocked": false
},
"id": 1000
},
{
"dataPolicy": {
"anyContentBlocked": true
},
"id": 1001
}
]
}
Rate this page: