Returns the value of a user nav preference.
Note: This operation fetches the property key value directly from RbacClient.
Permissions required:
read:jira-user
read:user.property:jira
Connect app scope required: READ
string
Requiredstring
Returned if the request is successful.
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/user/nav4-opt-property/{propertyKey}?accountId=5b10ac8d82e05b22cc7d4ef5`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
{
"key": "<string>",
"value": "<string>"
}
Sets the value of a Nav4 preference. Use this resource to store Nav4 preference data against a user in the Identity service.
Permissions required:
write:jira-work
write:user.property:jira
Connect apps cannot access this REST resource.
string
Requiredstring
The value of the property. The value has to be a boolean JSON value. The maximum length of the property value is 32768 bytes.
any
Returned if the user property is updated/created.
any
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{}`;
const response = await api.asUser().requestJira(route`/rest/api/3/user/nav4-opt-property/{propertyKey}?accountId=5b10ac8d82e05b22cc7d4ef5`, {
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
Rate this page: