Create a new workflow scheme. The body contains a representation of the new scheme. Values not passed are assumed to be set to their defaults.
Forge and OAuth2 apps cannot access this REST resource.
The body contains a representation of the new scheme. Values not passed are assumed to be set to their defaults.
string
string
boolean
integer
object
object
string
UserBean
string
string
The newly created scheme.
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
curl --request POST \
--url 'http://{baseurl}/rest/api/2/workflowscheme' \
--header 'Content-Type: application/json' \
--data '{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}'Returns the requested workflow scheme to the caller.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredboolean
Returned if the scheme exists and the caller has permission to see it.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Update the passed workflow scheme. The body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field. The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft should be created and/or updated when the actual scheme cannot be edited (e.g. when the scheme is being used by a project). Values not appearing the body will not be touched.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field.
string
string
boolean
integer
object
object
string
UserBean
string
string
The updated scheme.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Delete the passed workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredIf the scheme was deleted.
1
2
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}'Create a draft for the passed scheme. The draft will be a copy of the state of the parent.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe newly created scheme.
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/createdraft' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Return the default workflow from the passed workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredboolean
Returned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Set the default workflow for the passed workflow scheme. The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft should be created/updated when the actual scheme cannot be edited.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe new default.
boolean
string
Returned on success.
1
2
3
4
5
6
7
8
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"updateDraftIfNeeded": true,
"workflow": "<string>"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Remove the default workflow from the passed workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredboolean
Returned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Returns the requested draft workflow scheme to the caller.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredReturned if the scheme exists and the caller has permission to see it.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Update a draft workflow scheme. The draft will created if necessary. The body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field.
string
string
boolean
integer
object
object
string
UserBean
string
string
The updated/created scheme.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Delete the passed draft workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredIf the scheme was deleted.
1
2
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft'Return the default workflow from the passed draft workflow scheme to the caller.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredReturned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Set the default workflow for the passed draft workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe new default.
boolean
string
Returned on success.
1
2
3
4
5
6
7
8
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"updateDraftIfNeeded": true,
"workflow": "<string>"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Remove the default workflow from the passed draft workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredReturned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Returns the issue type mapping for the passed draft workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
RequiredReturned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/issuetype/{issueType}' \
--header 'Accept: application/json'1
2
3
4
5
{
"issueType": "10000",
"updateDraftIfNeeded": false,
"workflow": "My Workflow"
}Set the issue type mapping for the passed draft scheme. The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft should be created/updated when the actual scheme cannot be edited.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
RequiredThe new mapping for the issue type.
string
boolean
string
Returned on success.
1
2
3
4
5
6
7
8
9
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/issuetype/{issueType}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"issueType": "10000",
"updateDraftIfNeeded": false,
"workflow": "My Workflow"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Remove the specified issue type mapping from the draft scheme.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
RequiredReturned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/issuetype/{issueType}' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Returns the draft workflow mappings or requested mapping to the caller.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
Returned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/workflow' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Update the draft scheme to include the passed mapping. The body is a representation of the workflow mapping. Values not passed are assumed to indicate no change for that field.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
The body is a representation of the workflow mapping. Values not passed are assumed to indicate no change for that field.
boolean
array<string>
boolean
string
The updated scheme.
1
2
3
4
5
6
7
8
9
10
11
12
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/workflow' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"defaultMapping": true,
"issueTypes": [
"<string>"
],
"updateDraftIfNeeded": true,
"workflow": "<string>"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Delete the passed workflow from the draft workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
The scheme with the workflow deleted.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/workflow' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Returns the issue type mapping for the passed workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
Requiredboolean
Returned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/issuetype/{issueType}' \
--header 'Accept: application/json'1
2
3
4
5
{
"issueType": "10000",
"updateDraftIfNeeded": false,
"workflow": "My Workflow"
}Set the issue type mapping for the passed scheme. The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft should be created/updated when the actual scheme cannot be edited.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
RequiredThe new mapping for the issue type.
string
boolean
string
Returned on success.
1
2
3
4
5
6
7
8
9
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/issuetype/{issueType}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"issueType": "10000",
"updateDraftIfNeeded": false,
"workflow": "My Workflow"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Remove the specified issue type mapping from the scheme.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredinteger
Requiredboolean
Returned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/issuetype/{issueType}' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Returns the workflow mappings or requested mapping to the caller for the passed scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
boolean
Returned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/workflow' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Update the scheme to include the passed mapping. The body is a representation of the workflow mapping. Values not passed are assumed to indicate no change for that field. The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft should be created/updated when the actual scheme cannot be edited.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
The body is a representation of the workflow mapping. Values not passed are assumed to indicate no change for that field.
boolean
array<string>
boolean
string
The updated scheme.
1
2
3
4
5
6
7
8
9
10
11
12
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/workflow' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"defaultMapping": true,
"issueTypes": [
"<string>"
],
"updateDraftIfNeeded": true,
"workflow": "<string>"
}'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
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Delete the passed workflow from the workflow scheme.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredboolean
string
The scheme with the workflow deleted.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/workflow' \
--header 'Accept: application/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
54
{
"defaultWorkflow": "DefaultWorkflowName",
"description": "This is a workflow scheme",
"draft": false,
"id": 10000,
"issueTypeMappings": {
"IsueTypeId": "WorkflowName",
"IsueTypeId2": "WorkflowName"
},
"issueTypes": {
"IsueTypeId": {
"name": "IssueTypeName",
"description": "IssueTypeDescription"
}
},
"lastModified": "Today 12:45",
"lastModifiedUser": {
"active": true,
"applicationRoles": [
"jira-core",
"jira-admin",
"important"
],
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"deleted": false,
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"expand": "<string>",
"groups": {
"callback": {},
"maxResults": 2154,
"pagingCallback": {},
"size": 2154
},
"key": "JIRAUSER10100",
"lastLoginTime": "2023-08-30T16:37:01+1000",
"locale": "en_AU",
"name": "fred",
"self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
"timeZone": "Australia/Sydney"
},
"name": "My Workflow Scheme",
"originalDefaultWorkflow": "ParentsDefaultWorkflowName",
"originalIssueTypeMappings": {
"IssueTypeId": "WorkflowName2"
},
"self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
"updateDraftIfNeeded": true
}Rate this page: