This resource supports app migrations. Use it to:
Updates the value of a custom field added by Connect apps on one or more issues. The values of up to 200 custom fields can be updated.
Permissions required: Only Connect apps can make this request
Connect app scope required: NONE
string
Requiredarray<ConnectCustomFieldValue>
Returned 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
//
// This API resource doesn't support Oauth2 (3LO). See alternate authorization methods:
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/#authentication
import api, { route } from "@forge/api";
var bodyData = `{
"updateValueList": [
{
"_type": "StringIssueField",
"issueID": 10001,
"fieldID": 10076,
"string": "new string value"
},
{
"_type": "TextIssueField",
"issueID": 10002,
"fieldID": 10077,
"text": "new text value"
},
{
"_type": "SingleSelectIssueField",
"issueID": 10003,
"fieldID": 10078,
"optionID": "1"
},
{
"_type": "MultiSelectIssueField",
"issueID": 10004,
"fieldID": 10079,
"optionID": "2"
},
{
"_type": "RichTextIssueField",
"issueID": 10005,
"fieldID": 10080,
"richText": "new rich text value"
},
{
"_type": "NumberIssueField",
"issueID": 10006,
"fieldID": 10082,
"number": 54
}
]
}`;
const response = await api.requestJira(route`/rest/atlassian-connect/1/migration/field`, {
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
Updates the values of multiple entity properties for an object, up to 50 updates per request. This operation is for use by Connect apps during app migration.
Connect app scope required: NONE
string
Requiredstring
Requiredarray<EntityPropertyDetails>
1
Max items: 50
number
Requiredstring
Requiredstring
RequiredReturned if the request is successful.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
//
// This API resource doesn't support Oauth2 (3LO). See alternate authorization methods:
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/#authentication
import api, { route } from "@forge/api";
var bodyData = `[
{
"entityId": 123,
"key": "mykey",
"value": "newValue"
}
]`;
const response = await api.requestJira(route`/rest/atlassian-connect/1/migration/properties/{entityType}`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns configurations for workflow transition rules migrated from server to cloud and owned by the calling Connect app.
Connect app scope required: NONE
string
Requiredstring
array<string>
Requiredstring
RequiredReturned if the request is successful.
Details of workflow transition rules.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
//
// This API resource doesn't support Oauth2 (3LO). See alternate authorization methods:
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/#authentication
import api, { route } from "@forge/api";
var bodyData = `{
"expand": "transition",
"ruleIds": [
"55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
],
"workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7"
}`;
const response = await api.requestJira(route`/rest/atlassian-connect/1/migration/workflow/rule/search`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7",
"invalidRules": [
"55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
],
"validRules": [
{
"workflowId": {
"name": "Workflow name",
"draft": true
},
"postFunctions": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
],
"conditions": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
],
"validators": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
]
}
]
}
Rate this page: