Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Set an issue type mapping for a draft scheme

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.

PUT/api/2/workflowscheme/{id}/draft/issuetype/{issueType}
Path parameters
issueTypestringrequired

The issue type being set.

idinteger<int64>required

The id of the parent scheme.

Request body
requiredapplication/json

The new mapping for the issue type.

issueTypestring
updateDraftIfNeededboolean
workflowstring
Responses
200

Returned on success.

defaultWorkflowstring
descriptionstring
draftboolean
idinteger<int64>
issueTypeMappingsobject
issueTypesobject
lastModifiedstring
lastModifiedUserUserBean
Show properties
activeboolean
applicationRolesSimpleListWrapperApplicationRoleBean
Show properties
callbackListWrapperCallbackApplicationRoleBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackApplicationRoleBean
sizeinteger<int32>
avatarUrlsobject
deletedboolean
displayNamestring
emailAddressstring
expandstring
groupsSimpleListWrapperGroupJsonBean
Show properties
callbackListWrapperCallbackGroupJsonBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackGroupJsonBean
sizeinteger<int32>
keystring
lastLoginTimestring
localestring
namestring
selfstring<uri>
timeZonestring
namestring
originalDefaultWorkflowstring
originalIssueTypeMappingsobject
selfstring<uri>
updateDraftIfNeededboolean
401

Returned if there is no user or if the user has not entered a websudo session.

404

Returned if either the requested scheme or issue type does not exist.

Try it
Server
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/workflowscheme/0/draft/issuetype/string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "issueType": "10000",
  "updateDraftIfNeeded": false,
  "workflow": "My Workflow"
}'
Response
{
  "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": 0,
      "pagingCallback": {},
      "size": 0
    },
    "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
}

Was this page helpful?