Internal
Create a new instance of the service.
Creates an issue type and adds it to the default issue type scheme.
Permissions required: Administer Jira global permission.
Returned if the request is successful.
Loads an avatar for the issue type.
Specify the avatar's local file location in the body of the request. Also, include the following headers:
X-Atlassian-Token: no-check
To prevent XSRF protection blocking the
request, for more information see Special Headers.Content-Type: image/image type
Valid image types are JPEG, GIF, or PNG.For example:
curl --request POST \ --user email@example.com:<api_token> \ --header 'X-Atlassian-Token: no-check' \ --header 'Content-Type: image/< image_type>' \ --data-binary "<@/path/to/file/with/your/avatar>" \ --url 'https://your-domain.atlassian.net/rest/api/3/issuetype/{issueTypeId}'This
The avatar is cropped to a square. If no crop parameters are specified, the square originates at the top left of the image. The length of the square's sides is set to the smaller of the height or width of the image.
The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and 48x48 in size.
After creating the avatar, use Update issue type to set it as the issue type's displayed avatar.
Permissions required: Administer Jira global permission.
The ID of the issue type.
The length of each side of the crop region.
Optional
x?: numberThe X coordinate of the top-left corner of the crop region.
Optional
y?: numberThe Y coordinate of the top-left corner of the crop region.
Returned if the request is successful.
example:
{
"id": "1010",
"isDeletable": true,
"isSelected": false,
"isSystemAvatar": false
}
Deletes the issue type. If the issue type is in use, all uses are updated with
the alternative issue type (alternativeIssueTypeId
). A list of alternative
issue types are obtained from the Get alternative issue
types resource.
Permissions required: Administer Jira global permission.
Optional
alternativeThe ID of the replacement issue type.
The ID of the issue type.
Returns a list of issue types that can be used to replace the issue type. The alternative issue types are those assigned to the same workflow scheme, field configuration scheme, and screen scheme.
This operation can be accessed anonymously.
Permissions required: None.
The ID of the issue type.
Returned if the request is successful.
example:
[
{
"avatarId": 1,
"description": "A task that needs to be done.",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
"id": "3",
"name": "Task",
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
"subtask": false
},
{
"avatarId": 10002,
"description": "A problem with the software.",
"entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
"id": "1",
"name": "Bug",
"scope": {
"project": {
"id": "10000"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
"subtask": false
}
]
Returns all issue types.
This operation can be accessed anonymously.
Permissions required: Issue types are only returned as follows:
Returned if the request is successful.
example:
[
{
"avatarId": 1,
"description": "A task that needs to be done.",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
"id": "3",
"name": "Task",
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
"subtask": false
},
{
"avatarId": 10002,
"description": "A problem with the software.",
"entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
"id": "1",
"name": "Bug",
"scope": {
"project": {
"id": "10000"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
"subtask": false
}
]
Returns an issue type.
This operation can be accessed anonymously.
Permissions required: Browse projects project permission in a project the issue type is associated with or Administer Jira global permission.
The ID of the issue type.
Returned if the request is successful.
example:
{
"avatarId": 1,
"description": "A task that needs to be done.",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
"id": "3",
"name": "Task",
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
"subtask": false
}
Returns issue types for a project.
This operation can be accessed anonymously.
Permissions required: Browse projects project permission in the relevant project or Administer Jira global permission.
Optional
level?: numberThe level of the issue type to filter by. Use:
-1
for Subtask.0
for Base.1
for Epic.The ID of the project.
Returned if the request is successful.
example:
[
{
"avatarId": 10002,
"description": "A problem with the software.",
"entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
"id": "1",
"name": "Bug",
"scope": {
"project": {
"id": "10000"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
"subtask": false
},
{
"avatarId": 1,
"description": "A task that needs to be done.",
"hierarchyLevel": 0,
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
"id": "3",
"name": "Task",
"scope": {
"project": {
"id": "10000"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
"subtask": false
}
]
Updates the issue type.
Permissions required: Administer Jira global permission.
The ID of the issue type.
Returned if the request is successful.
Protected
Static
initialize
This resource represents issues types. Use it to:
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types