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.
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
curl --request POST \
--url 'http://{baseurl}/rest/api/2/workflowscheme' \
--header 'Content-Type: application/json'
Returns the requested workflow scheme to the caller.
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'
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.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Delete the passed workflow scheme.
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.
integer
RequiredThe newly created scheme.
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/createdraft' \
--header 'Accept: application/json'
Return the default workflow from the passed workflow scheme.
integer
Requiredboolean
Returned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/json'
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.
integer
RequiredThe new default.
boolean
string
Returned on success.
1
2
3
4
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Remove the default workflow from the passed workflow scheme.
integer
Requiredboolean
Returned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/default' \
--header 'Accept: application/json'
Returns the requested draft workflow scheme to the caller.
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'
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.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Delete the passed draft workflow scheme.
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.
integer
RequiredReturned on success.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/json'
Set the default workflow for the passed draft workflow scheme.
integer
RequiredThe new default.
boolean
string
Returned on success.
1
2
3
4
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Remove the default workflow from the passed draft workflow scheme.
integer
RequiredReturned on success.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/default' \
--header 'Accept: application/json'
Returns the issue type mapping for the passed draft workflow scheme.
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'
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.
string
Requiredinteger
RequiredThe new mapping for the issue type.
string
boolean
string
Returned on success.
1
2
3
4
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/issuetype/{issueType}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Remove the specified issue type mapping from the draft scheme.
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'
Returns the draft workflow mappings or requested mapping to the caller.
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'
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.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/draft/workflow' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Delete the passed workflow from the draft workflow scheme.
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'
Returns the issue type mapping for the passed workflow scheme.
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'
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.
string
Requiredinteger
RequiredThe new mapping for the issue type.
string
boolean
string
Returned on success.
1
2
3
4
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/issuetype/{issueType}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Remove the specified issue type mapping from the scheme.
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'
Returns the workflow mappings or requested mapping to the caller for the passed scheme.
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'
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.
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
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/workflowscheme/{id}/workflow' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Delete the passed workflow from the workflow scheme.
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'
Rate this page: