This resource provides information about the Jira instance.
Returns information about the Jira instance.
This operation can be accessed anonymously.
Permissions required: None.
Connect app scope required: READ
This request has no parameters.
Returned if the request is successful.
Details about the Jira instance.
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/serverInfo`, {
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
17
18
19
20
21
{
"baseUrl": "https://your-domain.atlassian.net",
"buildDate": "2020-03-26T22:20:59.000+0000",
"buildNumber": 582,
"defaultLocale": {
"locale": "en_AU"
},
"displayUrl": "https://instance.jira.your-domain.com",
"displayUrlConfluence": "https://instance.confluence.your-domain.com",
"displayUrlServicedeskHelpCenter": "https://instance.help.your-domain.com",
"scmInfo": "1f51473f5c7b75c1a69a0090f4832cdc5053702a",
"serverTime": "2020-03-31T16:43:50.000+0000",
"serverTimeZone": "Australia/Sydney",
"serverTitle": "My Jira instance",
"version": "1001.0.0-SNAPSHOT",
"versionNumbers": [
5,
0,
0
]
}
Rate this page: