All URIs are relative to https://your-domain.atlassian.com
Method | HTTP request | Description |
---|---|---|
createWorkflowSchemeDraftFromParent | POST /rest/api/3/workflowscheme/{id}/createdraft | Create draft workflow scheme |
deleteDraftDefaultWorkflow | DELETE /rest/api/3/workflowscheme/{id}/draft/default | Delete draft default workflow |
deleteDraftWorkflowMapping | DELETE /rest/api/3/workflowscheme/{id}/draft/workflow | Delete issue types for workflow in draft workflow scheme |
deleteWorkflowSchemeDraft | DELETE /rest/api/3/workflowscheme/{id}/draft | Delete draft workflow scheme |
deleteWorkflowSchemeDraftIssueType | DELETE /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType} | Delete workflow for issue type in draft workflow scheme |
getDraftDefaultWorkflow | GET /rest/api/3/workflowscheme/{id}/draft/default | Get draft default workflow |
getDraftWorkflow | GET /rest/api/3/workflowscheme/{id}/draft/workflow | Get issue types for workflows in draft workflow scheme |
getWorkflowSchemeDraft | GET /rest/api/3/workflowscheme/{id}/draft | Get draft workflow scheme |
getWorkflowSchemeDraftIssueType | GET /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType} | Get workflow for issue type in draft workflow scheme |
setWorkflowSchemeDraftIssueType | PUT /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType} | Set workflow for issue type in draft workflow scheme |
updateDraftDefaultWorkflow | PUT /rest/api/3/workflowscheme/{id}/draft/default | Update draft default workflow |
updateDraftWorkflowMapping | PUT /rest/api/3/workflowscheme/{id}/draft/workflow | Set issue types for workflow in workflow scheme |
updateWorkflowSchemeDraft | PUT /rest/api/3/workflowscheme/{id}/draft | Update draft workflow scheme |
WorkflowScheme createWorkflowSchemeDraftFromParent(id)
Create draft workflow scheme
Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the active workflow scheme that the draft is created from.
try {
WorkflowScheme result = apiInstance.createWorkflowSchemeDraftFromParent(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#createWorkflowSchemeDraftFromParent");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the active workflow scheme that the draft is created from. |
- Content-Type: Not defined
- Accept: application/json
WorkflowScheme deleteDraftDefaultWorkflow(id)
Delete draft default workflow
Resets the default workflow for a workflow scheme's draft. That is, the default workflow is set to Jira's system workflow (the jira workflow). Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
try {
WorkflowScheme result = apiInstance.deleteDraftDefaultWorkflow(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#deleteDraftDefaultWorkflow");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. |
- Content-Type: Not defined
- Accept: application/json
deleteDraftWorkflowMapping(id, workflowName)
Delete issue types for workflow in draft workflow scheme
Deletes the workflow-issue type mapping for a workflow in a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
String workflowName = "workflowName_example"; // String | The name of the workflow.
try {
apiInstance.deleteDraftWorkflowMapping(id, workflowName);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#deleteDraftWorkflowMapping");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. | |
workflowName | String | The name of the workflow. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
deleteWorkflowSchemeDraft(id)
Delete draft workflow scheme
Deletes a draft workflow scheme. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the active workflow scheme that the draft was created from.
try {
apiInstance.deleteWorkflowSchemeDraft(id);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#deleteWorkflowSchemeDraft");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the active workflow scheme that the draft was created from. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
WorkflowScheme deleteWorkflowSchemeDraftIssueType(id, issueType)
Delete workflow for issue type in draft workflow scheme
Deletes the issue type-workflow mapping for an issue type in a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
String issueType = "issueType_example"; // String | The ID of the issue type.
try {
WorkflowScheme result = apiInstance.deleteWorkflowSchemeDraftIssueType(id, issueType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#deleteWorkflowSchemeDraftIssueType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. | |
issueType | String | The ID of the issue type. |
- Content-Type: Not defined
- Accept: application/json
DefaultWorkflow getDraftDefaultWorkflow(id)
Get draft default workflow
Returns the default workflow for a workflow scheme's draft. The default workflow is the workflow that is assigned any issue types that have not been mapped to any other workflow. The default workflow has All Unassigned Issue Types listed in its issue types for the workflow scheme in Jira. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
try {
DefaultWorkflow result = apiInstance.getDraftDefaultWorkflow(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#getDraftDefaultWorkflow");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. |
- Content-Type: Not defined
- Accept: application/json
IssueTypesWorkflowMapping getDraftWorkflow(id, workflowName)
Get issue types for workflows in draft workflow scheme
Returns the workflow-issue type mappings for a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
String workflowName = "workflowName_example"; // String | The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow.
try {
IssueTypesWorkflowMapping result = apiInstance.getDraftWorkflow(id, workflowName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#getDraftWorkflow");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. | |
workflowName | String | The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow. | [optional] |
- Content-Type: Not defined
- Accept: application/json
WorkflowScheme getWorkflowSchemeDraft(id)
Get draft workflow scheme
Returns the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme. See Configuring workflow schemes for more information. Note that: * Only active workflow schemes can have draft workflow schemes. * An active workflow scheme can only have one draft workflow scheme. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the active workflow scheme that the draft was created from.
try {
WorkflowScheme result = apiInstance.getWorkflowSchemeDraft(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#getWorkflowSchemeDraft");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the active workflow scheme that the draft was created from. |
- Content-Type: Not defined
- Accept: application/json
IssueTypeWorkflowMapping getWorkflowSchemeDraftIssueType(id, issueType)
Get workflow for issue type in draft workflow scheme
Returns the issue type-workflow mapping for an issue type in a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
String issueType = "issueType_example"; // String | The ID of the issue type.
try {
IssueTypeWorkflowMapping result = apiInstance.getWorkflowSchemeDraftIssueType(id, issueType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#getWorkflowSchemeDraftIssueType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | The ID of the workflow scheme that the draft belongs to. | |
issueType | String | The ID of the issue type. |
- Content-Type: Not defined
- Accept: application/json
WorkflowScheme setWorkflowSchemeDraftIssueType(body, id, issueType)
Set workflow for issue type in draft workflow scheme
Sets the workflow for an issue type in a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
IssueTypeWorkflowMapping body = new IssueTypeWorkflowMapping(); // IssueTypeWorkflowMapping | The issue type-project mapping.
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
String issueType = "issueType_example"; // String | The ID of the issue type.
try {
WorkflowScheme result = apiInstance.setWorkflowSchemeDraftIssueType(body, id, issueType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#setWorkflowSchemeDraftIssueType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | IssueTypeWorkflowMapping | The issue type-project mapping. | |
id | Long | The ID of the workflow scheme that the draft belongs to. | |
issueType | String | The ID of the issue type. |
- Content-Type: application/json
- Accept: application/json
WorkflowScheme updateDraftDefaultWorkflow(body, id)
Update draft default workflow
Sets the default workflow for a workflow scheme's draft. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
DefaultWorkflow body = new DefaultWorkflow(); // DefaultWorkflow | The object for the new default workflow.
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
try {
WorkflowScheme result = apiInstance.updateDraftDefaultWorkflow(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#updateDraftDefaultWorkflow");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | DefaultWorkflow | The object for the new default workflow. | |
id | Long | The ID of the workflow scheme that the draft belongs to. |
- Content-Type: application/json
- Accept: application/json
WorkflowScheme updateDraftWorkflowMapping(body, workflowName, id)
Set issue types for workflow in workflow scheme
Sets the issue types for a workflow in a workflow scheme's draft. The workflow can also be set as the default workflow for the draft workflow scheme. Unmapped issues types are mapped to the default workflow. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
IssueTypesWorkflowMapping body = new IssueTypesWorkflowMapping(); // IssueTypesWorkflowMapping |
String workflowName = "workflowName_example"; // String | The name of the workflow.
Long id = 789L; // Long | The ID of the workflow scheme that the draft belongs to.
try {
WorkflowScheme result = apiInstance.updateDraftWorkflowMapping(body, workflowName, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#updateDraftWorkflowMapping");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | IssueTypesWorkflowMapping | ||
workflowName | String | The name of the workflow. | |
id | Long | The ID of the workflow scheme that the draft belongs to. |
- Content-Type: application/json
- Accept: application/json
WorkflowScheme updateWorkflowSchemeDraft(body, id)
Update draft workflow scheme
Updates a draft workflow scheme. If a draft workflow scheme does not exist for the active workflow scheme, then a draft is created. Note that an active workflow scheme can only have one draft workflow scheme. Permissions required: Administer Jira global permission.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.WorkflowSchemeDraftsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
WorkflowSchemeDraftsApi apiInstance = new WorkflowSchemeDraftsApi();
WorkflowScheme body = new WorkflowScheme(); // WorkflowScheme |
Long id = 789L; // Long | The ID of the active workflow scheme that the draft was created from.
try {
WorkflowScheme result = apiInstance.updateWorkflowSchemeDraft(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowSchemeDraftsApi#updateWorkflowSchemeDraft");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | WorkflowScheme | ||
id | Long | The ID of the active workflow scheme that the draft was created from. |
- Content-Type: application/json
- Accept: application/json