Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected Readonly config

config: Config

instance

instance: AxiosInstance

Methods

addActorUsers

addAttachment

  • description

    Adds one or more attachments to an issue. Attachments are posted as multipart/form-data (RFC 1867). Note that: * The request must have a X-Atlassian-Token: no-check header, if not it is blocked. See Special headers for more information. * The name of the multipart/form-data parameter that contains the attachments must be file. The following examples upload a file called myfile.txt to the issue TEST-123: #### curl #### curl --location --request POST 'https://your-domain.atlassian.net/rest/api/2/issue/TEST-123/attachments' -u 'email@example.com:' -H 'X-Atlassian-Token: no-check' --form 'file=@"myfile.txt"' #### Node.js #### // This code sample uses the 'node-fetch' and 'form-data' libraries: // https://www.npmjs.com/package/node-fetch // https://www.npmjs.com/package/form-data const fetch = require('node-fetch'); const FormData = require('form-data'); const fs = require('fs'); const filePath = 'myfile.txt'; const form = new FormData(); const stats = fs.statSync(filePath); const fileSizeInBytes = stats.size; const fileStream = fs.createReadStream(filePath); form.append('file', fileStream, {knownLength: fileSizeInBytes}); fetch('https://your-domain.atlassian.net/rest/api/2/issue/TEST-123/attachments', { method: 'POST', body: form, headers: { 'Authorization': Basic ${Buffer.from( 'email@example.com:' ).toString('base64')}, 'Accept': 'application/json', 'X-Atlassian-Token': 'no-check' } }) .then(response => { console.log( Response: ${response.status} ${response.statusText} ); return response.text(); }) .then(text => console.log(text)) .catch(err => console.error(err)); #### Java #### // This code sample uses the 'Unirest' library: // http://unirest.io/java.html HttpResponse response = Unirest.post("https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments") .basicAuth("email@example.com", "") .header("Accept", "application/json") .header("X-Atlassian-Token", "no-check") .field("file", new File("myfile.txt")) .asJson(); System.out.println(response.getBody()); #### Python #### # This code sample uses the 'requests' library: # http://docs.python-requests.org import requests from requests.auth import HTTPBasicAuth import json url = "https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments" auth = HTTPBasicAuth("email@example.com", "") headers = { "Accept": "application/json", "X-Atlassian-Token": "no-check" } response = requests.request( "POST", url, headers = headers, auth = auth, files = { "file": ("myfile.txt", open("myfile.txt","rb"), "application-type") } ) print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) #### PHP #### // This code sample uses the 'Unirest' library: // http://unirest.io/php.html Unirest\Request::auth('email@example.com', ''); $headers = array( 'Accept' => 'application/json', 'X-Atlassian-Token' => 'no-check' ); $parameters = array( 'file' => File::add('myfile.txt') ); $response = Unirest\Request::post( 'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments', $headers, $parameters ); var_dump($response) #### Forge #### // This sample uses Atlassian Forge and the form-data library. // https://developer.atlassian.com/platform/forge/ // https://www.npmjs.com/package/form-data import api from "@forge/api"; import FormData from "form-data"; const form = new FormData(); form.append('file', fileStream, {knownLength: fileSizeInBytes}); const response = await api.asApp().requestJira('/rest/api/2/issue/{issueIdOrKey}/attachments', { method: 'POST', body: form, headers: { 'Accept': 'application/json', 'X-Atlassian-Token': 'no-check' } }); console.log(Response: ${response.status} ${response.statusText}); console.log(await response.json()); Tip: Use a client library. Many client libraries have classes for handling multipart POST operations. For example, in Java, the Apache HTTP Components library provides a MultiPartEntity class for multipart POST operations. This operation can be accessed anonymously. Permissions required: * Browse Projects and Create attachments project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    AddAttachment

    summary

    Add attachment

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/attachments

    secure

    Parameters

    Returns Promise<Attachment[]>

addComment

  • description

    Adds a comment to an issue. This operation can be accessed anonymously. Permissions required: * Browse projects and Add comments project permission for the project that the issue containing the comment is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue comments

    name

    AddComment

    summary

    Add comment

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/comment

    secure

    Parameters

    • issueIdOrKey: string
    • data: Comment
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Comment>

addFieldToDefaultScreen

  • addFieldToDefaultScreen(fieldId: string, params?: RequestParams): Promise<any>

addIssueTypesToContext

  • description

    Adds issue types to a custom field context, appending the issue types to the issue types list. A custom field context without any issue types applies to all issue types. Adding issue types to such a custom field context would result in it applying to only the listed issue types. If any of the issue types exists in the custom field context, the operation fails and no issue types are added. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    AddIssueTypesToContext

    summary

    Add issue types to context

    request

    PUT:/rest/api/2/field/{fieldId}/context/{contextId}/issuetype

    secure

    Parameters

    Returns Promise<any>

addIssueTypesToIssueTypeScheme

  • description

    Adds issue types to an issue type scheme. The added issue types are appended to the issue types list. If any of the issue types exist in the issue type scheme, the operation fails and no issue types are added. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    AddIssueTypesToIssueTypeScheme

    summary

    Add issue types to issue type scheme

    request

    PUT:/rest/api/2/issuetypescheme/{issueTypeSchemeId}/issuetype

    secure

    Parameters

    Returns Promise<any>

addProjectRoleActorsToRole

addScreenTab

addScreenTabField

addSharePermission

  • description

    Add a share permissions to a filter. If you add a global share permission (one for all logged-in users or the public) it will overwrite all share permissions for the filter. Be aware that this operation uses different objects for updating share permissions compared to Update filter. Permissions required: Share dashboards and filters global permission and the user must own the filter.

    tags

    Filter sharing

    name

    AddSharePermission

    summary

    Add share permission

    request

    POST:/rest/api/2/filter/{id}/permission

    secure

    Parameters

    Returns Promise<SharePermission[]>

addUserToGroup

addVote

  • addVote(issueIdOrKey: string, params?: RequestParams): Promise<any>
  • description

    Adds the user's vote to an issue. This is the equivalent of the user clicking Vote on an issue in Jira. This operation requires the Allow users to vote on issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue votes

    name

    AddVote

    summary

    Add vote

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/votes

    secure

    Parameters

    Returns Promise<any>

addWatcher

  • addWatcher(issueIdOrKey: string, data: string, params?: RequestParams): Promise<any>
  • description

    Adds a user as a watcher of an issue by passing the account ID of the user. For example, "5b10ac8d82e05b22cc7d4ef5". If no user is specified the calling user is added. This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * To add users other than themselves to the watchlist, Manage watcher list project permission for the project that the issue is in.

    tags

    Issue watchers

    name

    AddWatcher

    summary

    Add watcher

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/watchers

    secure

    Parameters

    Returns Promise<any>

addWorklog

  • addWorklog(issueIdOrKey: string, data: Worklog, query?: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; expand?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean; reduceBy?: string }, params?: RequestParams): Promise<Worklog>
  • description

    Adds a worklog to an issue. Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking. This operation can be accessed anonymously. Permissions required: * Browse projects and Work on issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue worklogs

    name

    AddWorklog

    summary

    Add worklog

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/worklog

    secure

    Parameters

    • issueIdOrKey: string
    • data: Worklog
    • Optional query: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; expand?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean; reduceBy?: string }
      • Optional adjustEstimate?: "new" | "leave" | "manual" | "auto"
      • Optional expand?: string
      • Optional newEstimate?: string
      • Optional notifyUsers?: boolean
      • Optional overrideEditableFlag?: boolean
      • Optional reduceBy?: string
    • params: RequestParams = {}

    Returns Promise<Worklog>

addonPropertiesResourceDeleteAddonPropertyDelete

  • addonPropertiesResourceDeleteAddonPropertyDelete(addonKey: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes an app's property. Permissions required: Only a Connect app whose key matches addonKey can make this request.

    tags

    App properties

    name

    AddonPropertiesResourceDeleteAddonPropertyDelete

    summary

    Delete app property

    request

    DELETE:/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}

    Parameters

    • addonKey: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

addonPropertiesResourceGetAddonPropertiesGet

addonPropertiesResourceGetAddonPropertyGet

  • description

    Returns the key and value of an app's property. Permissions required: Only a Connect app whose key matches addonKey can make this request.

    tags

    App properties

    name

    AddonPropertiesResourceGetAddonPropertyGet

    summary

    Get app property

    request

    GET:/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}

    Parameters

    • addonKey: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

addonPropertiesResourcePutAddonPropertyPut

  • addonPropertiesResourcePutAddonPropertyPut(addonKey: string, propertyKey: string, data: any, params?: RequestParams): Promise<OperationMessage>
  • description

    Sets the value of an app's property. Use this resource to store custom data for your app. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. Permissions required: Only a Connect app whose key matches addonKey can make this request.

    tags

    App properties

    name

    AddonPropertiesResourcePutAddonPropertyPut

    summary

    Set app property

    request

    PUT:/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}

    Parameters

    • addonKey: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<OperationMessage>

analyseExpression

  • description

    Analyses and validates Jira expressions. As an experimental feature, this operation can also attempt to type-check the expressions. Learn more about Jira expressions in the documentation. Permissions required: None.

    tags

    Jira expressions

    name

    AnalyseExpression

    summary

    Analyse Jira expression

    request

    POST:/rest/api/2/expression/analyse

    secure

    Parameters

    Returns Promise<JiraExpressionsAnalysis>

appIssueFieldValueUpdateResourceUpdateIssueFieldsPut

appendMappingsForIssueTypeScreenScheme

archiveProject

  • archiveProject(projectIdOrKey: string, params?: RequestParams): Promise<any>
  • description

    Archives a project. You can't delete a project if it's archived. To delete an archived project, restore the project and then delete it. To restore a project, use the Jira UI. Permissions required: Administer Jira global permission.

    tags

    Projects

    name

    ArchiveProject

    summary

    Archive project

    request

    POST:/rest/api/2/project/{projectIdOrKey}/archive

    secure

    Parameters

    Returns Promise<any>

assignFieldConfigurationSchemeToProject

assignIssue

  • assignIssue(issueIdOrKey: string, data: User, params?: RequestParams): Promise<any>
  • description

    Assigns an issue to a user. Use this operation when the calling user does not have the Edit Issues permission but has the Assign issue permission for the project that the issue is in. If name or accountId is set to: * "-1", the issue is assigned to the default assignee for the project. * null, the issue is set to unassigned. This operation can be accessed anonymously. Permissions required: * Browse Projects and Assign Issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    AssignIssue

    summary

    Assign issue

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/assignee

    secure

    Parameters

    Returns Promise<any>

assignIssueTypeSchemeToProject

  • description

    Assigns an issue type scheme to a project. If any issues in the project are assigned issue types not present in the new scheme, the operation will fail. To complete the assignment those issues must be updated to use issue types in the new scheme. Issue type schemes can only be assigned to classic projects. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    AssignIssueTypeSchemeToProject

    summary

    Assign issue type scheme to project

    request

    PUT:/rest/api/2/issuetypescheme/project

    secure

    Parameters

    Returns Promise<any>

assignIssueTypeScreenSchemeToProject

assignPermissionScheme

assignProjectsToCustomFieldContext

  • assignProjectsToCustomFieldContext(fieldId: string, contextId: number, data: ProjectIds, params?: RequestParams): Promise<any>
  • description

    Assigns a custom field context to projects. If any project in the request is assigned to any context of the custom field, the operation fails. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    AssignProjectsToCustomFieldContext

    summary

    Assign custom field context to projects

    request

    PUT:/rest/api/2/field/{fieldId}/context/{contextId}/project

    secure

    Parameters

    Returns Promise<any>

assignSchemeToProject

bulkDeleteIssueProperty

  • description

    Deletes a property value from multiple issues. The issues to be updated can be specified by filter criteria. The criteria the filter used to identify eligible issues are: * entityIds Only issues from this list are eligible. * currentValue Only issues with the property set to this value are eligible. If both criteria is specified, they are joined with the logical AND: only issues that satisfy both criteria are considered eligible. If no filter criteria are specified, all the issues visible to the user and where the user has the EDIT_ISSUES permission for the issue are considered eligible. This operation is: * transactional, either the property is deleted from all eligible issues or, when errors occur, no properties are deleted. * asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain subsequent updates. Permissions required: * Browse projects project permission for each project containing issues. * If issue-level security is configured, issue-level security permission to view the issue. * Edit issues project permission for each issue.

    tags

    Issue properties

    name

    BulkDeleteIssueProperty

    summary

    Bulk delete issue property

    request

    DELETE:/rest/api/2/issue/properties/{propertyKey}

    secure

    Parameters

    Returns Promise<any>

bulkGetGroups

  • description

    Returns a paginated list of groups. Permissions required: Browse users and groups global permission.

    tags

    Groups

    name

    BulkGetGroups

    summary

    Bulk get groups

    request

    GET:/rest/api/2/group/bulk

    secure

    Parameters

    • Optional query: { groupId?: string[]; groupName?: string[]; maxResults?: number; startAt?: number }
      • Optional groupId?: string[]
      • Optional groupName?: string[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanGroupDetails>

bulkGetUsers

  • bulkGetUsers(query: { accountId: string[]; key?: string[]; maxResults?: number; startAt?: number; username?: string[] }, params?: RequestParams): Promise<PageBeanUser>
  • description

    Returns a paginated list of the users specified by one or more account IDs. Permissions required: Permission to access Jira.

    tags

    Users

    name

    BulkGetUsers

    summary

    Bulk get users

    request

    GET:/rest/api/2/user/bulk

    secure

    Parameters

    • query: { accountId: string[]; key?: string[]; maxResults?: number; startAt?: number; username?: string[] }
      • accountId: string[]
      • Optional key?: string[]
      • Optional maxResults?: number
      • Optional startAt?: number
      • Optional username?: string[]
    • params: RequestParams = {}

    Returns Promise<PageBeanUser>

bulkGetUsersMigration

  • bulkGetUsersMigration(query?: { key?: string[]; maxResults?: number; startAt?: number; username?: string[] }, params?: RequestParams): Promise<UserMigrationBean[]>
  • description

    Returns the account IDs for the users specified in the key or username parameters. Note that multiple key or username parameters can be specified. Permissions required: Permission to access Jira.

    tags

    Users

    name

    BulkGetUsersMigration

    summary

    Get account IDs for users

    request

    GET:/rest/api/2/user/bulk/migration

    secure

    Parameters

    • Optional query: { key?: string[]; maxResults?: number; startAt?: number; username?: string[] }
      • Optional key?: string[]
      • Optional maxResults?: number
      • Optional startAt?: number
      • Optional username?: string[]
    • params: RequestParams = {}

    Returns Promise<UserMigrationBean[]>

bulkSetIssueProperty

  • description

    Sets a property value on multiple issues. The value set can be a constant or determined by a Jira expression. Expressions must be computable with constant complexity when applied to a set of issues. Expressions must also comply with the restrictions that apply to all Jira expressions. The issues to be updated can be specified by a filter. The filter identifies issues eligible for update using these criteria: * entityIds Only issues from this list are eligible. * currentValue Only issues with the property set to this value are eligible. * hasProperty: * If true, only issues with the property are eligible. * If false, only issues without the property are eligible. If more than one criteria is specified, they are joined with the logical AND: only issues that satisfy all criteria are eligible. If an invalid combination of criteria is provided, an error is returned. For example, specifying a currentValue and hasProperty as false would not match any issues (because without the property the property cannot have a value). The filter is optional. Without the filter all the issues visible to the user and where the user has the EDIT_ISSUES permission for the issue are considered eligible. This operation is: * transactional, either all eligible issues are updated or, when errors occur, none are updated. * asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain subsequent updates. Permissions required: * Browse projects project permission for each project containing issues. * If issue-level security is configured, issue-level security permission to view the issue. * Edit issues project permission for each issue.

    tags

    Issue properties

    name

    BulkSetIssueProperty

    summary

    Bulk set issue property

    request

    PUT:/rest/api/2/issue/properties/{propertyKey}

    secure

    Parameters

    Returns Promise<any>

bulkSetIssuesProperties

  • description

    Sets the values of entity properties on issues. It can set up to 10 entity properties on up to 10,000 issues. The value of the request body must be a valid, non-empty JSON. The maximum length of single issue property value is 32768 characters. This operation can be accessed anonymously. This operation is: * transactional, either all properties are updated in all eligible issues or, when errors occur, no properties are updated. * asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain subsequent updates. Permissions required: * Browse projects and Edit issues project permissions for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue properties

    name

    BulkSetIssuesProperties

    summary

    Bulk set issues properties

    request

    POST:/rest/api/2/issue/properties

    secure

    Parameters

    Returns Promise<any>

cancelTask

  • cancelTask(taskId: string, params?: RequestParams): Promise<any>

copyDashboard

  • description

    Copies a dashboard. Any values provided in the dashboard parameter replace those in the copied dashboard. Permissions required: None The dashboard to be copied must be owned by or shared with the user.

    tags

    Dashboards

    name

    CopyDashboard

    summary

    Copy dashboard

    request

    POST:/rest/api/2/dashboard/{id}/copy

    secure

    Parameters

    Returns Promise<Dashboard>

createComponent

createCustomField

createCustomFieldContext

createCustomFieldOption

  • description

    Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field. The maximum number of options that can be created per request is 1000 and each field can have a maximum of 10000 options. This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations. Permissions required: Administer Jira global permission.

    tags

    Issue custom field options

    name

    CreateCustomFieldOption

    summary

    Create custom field options (context)

    request

    POST:/rest/api/2/field/{fieldId}/context/{contextId}/option

    secure

    Parameters

    Returns Promise<CustomFieldCreatedContextOptionsList>

createDashboard

createFieldConfiguration

  • description

    Creates a field configuration. The field configuration is created with the same field properties as the default configuration, with all the fields being optional. This operation can only create configurations for use in company-managed (classic) projects. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    CreateFieldConfiguration

    summary

    Create field configuration

    request

    POST:/rest/api/2/fieldconfiguration

    secure

    Parameters

    Returns Promise<FieldConfiguration>

createFieldConfigurationScheme

createFilter

  • description

    Creates a filter. The filter is shared according to the default share scope. The filter is not selected as a favorite. Permissions required: Permission to access Jira.

    tags

    Filters

    name

    CreateFilter

    summary

    Create filter

    request

    POST:/rest/api/2/filter

    secure

    Parameters

    • data: Filter
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter>

createGroup

createIssue

  • description

    Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask. A transition may be applied, to move the issue or subtask to a workflow step other than the default start step, and issue properties set. The content of the issue or subtask is defined using update and fields. The fields that can be set in the issue or subtask are determined using the Get create issue metadata. These are the same fields that appear on the issue's create screen. Creating a subtask differs from creating an issue as follows: * issueType must be set to a subtask issue type (use Get create issue metadata to find subtask issue types). * parent must contain the ID or key of the parent issue. Permissions required: Browse projects and Create issues project permissions for the project in which the issue or subtask is created.

    tags

    Issues

    name

    CreateIssue

    summary

    Create issue

    request

    POST:/rest/api/2/issue

    secure

    Parameters

    Returns Promise<CreatedIssue>

createIssueFieldOption

  • description

    Creates an option for a select list issue field. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    CreateIssueFieldOption

    summary

    Create issue field option

    request

    POST:/rest/api/2/field/{fieldKey}/option

    secure

    Parameters

    Returns Promise<IssueFieldOption>

createIssueLinkType

  • description

    Creates an issue link type. Use this operation to create descriptions of the reasons why issues are linked. The issue link type consists of a name and descriptions for a link's inward and outward relationships. To use this operation, the site must have issue linking enabled. Permissions required: Administer Jira global permission.

    tags

    Issue link types

    name

    CreateIssueLinkType

    summary

    Create issue link type

    request

    POST:/rest/api/2/issueLinkType

    secure

    Parameters

    Returns Promise<IssueLinkType>

createIssueType

createIssueTypeAvatar

  • createIssueTypeAvatar(id: string, query: { size: number; x?: number; y?: number }, data: any, params?: RequestParams): Promise<Avatar>
  • description

    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/2/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.

    tags

    Issue types

    name

    CreateIssueTypeAvatar

    summary

    Load issue type avatar

    request

    POST:/rest/api/2/issuetype/{id}/avatar2

    secure

    Parameters

    • id: string
    • query: { size: number; x?: number; y?: number }
      • size: number
      • Optional x?: number
      • Optional y?: number
    • data: any
    • params: RequestParams = {}

    Returns Promise<Avatar>

createIssueTypeScheme

createIssueTypeScreenScheme

createIssues

  • description

    Creates issues and, where the option to create subtasks is enabled in Jira, subtasks. Transitions may be applied, to move the issues or subtasks to a workflow step other than the default start step, and issue properties set. The content of each issue or subtask is defined using update and fields. The fields that can be set in the issue or subtask are determined using the Get create issue metadata. These are the same fields that appear on the issues' create screens. Creating a subtask differs from creating an issue as follows: * issueType must be set to a subtask issue type (use Get create issue metadata to find subtask issue types). * parent the must contain the ID or key of the parent issue. Permissions required: Browse projects and Create issues project permissions for the project in which each issue or subtask is created.

    tags

    Issues

    name

    CreateIssues

    summary

    Bulk create issue

    request

    POST:/rest/api/2/issue/bulk

    secure

    Parameters

    Returns Promise<CreatedIssues>

createOrUpdateRemoteIssueLink

  • description

    Creates or updates a remote issue link for an issue. If a globalId is provided and a remote issue link with that global ID is found it is updated. Any fields without values in the request are set to null. Otherwise, the remote issue link is created. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue remote links

    name

    CreateOrUpdateRemoteIssueLink

    summary

    Create or update remote issue link

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/remotelink

    secure

    Parameters

    Returns Promise<RemoteIssueLinkIdentifies>

createPermissionGrant

createPermissionScheme

createProject

  • description

    Creates a project based on a project type template, as shown in the following table: | Project Type Key | Project Template Key | |--|--| | business | com.atlassian.jira-core-project-templates:jira-core-simplified-content-management, com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval, com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking, com.atlassian.jira-core-project-templates:jira-core-simplified-process-control, com.atlassian.jira-core-project-templates:jira-core-simplified-procurement, com.atlassian.jira-core-project-templates:jira-core-simplified-project-management, com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment, com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking | | service_desk | com.atlassian.servicedesk:simplified-it-service-management, com.atlassian.servicedesk:simplified-general-service-desk, com.atlassian.servicedesk:simplified-internal-service-desk, com.atlassian.servicedesk:simplified-external-service-desk, com.atlassian.servicedesk:simplified-hr-service-desk, com.atlassian.servicedesk:simplified-facilities-service-desk, com.atlassian.servicedesk:simplified-legal-service-desk | | software | com.pyxis.greenhopper.jira:gh-simplified-agility-kanban, com.pyxis.greenhopper.jira:gh-simplified-agility-scrum, com.pyxis.greenhopper.jira:gh-simplified-basic, com.pyxis.greenhopper.jira:gh-simplified-kanban-classic, com.pyxis.greenhopper.jira:gh-simplified-scrum-classic | The project types are available according to the installed Jira features as follows: * Jira Core, the default, enables business projects. * Jira Service Management enables service_desk projects. * Jira Software enables software projects. To determine which features are installed, go to Jira settings > Apps > Manage apps and review the System Apps list. To add Jira Software or Jira Service Management into a JIRA instance, use Jira settings > Apps > Finding new apps. For more information, see Managing add-ons. Permissions required: Administer Jira global permission.

    tags

    Projects

    name

    CreateProject

    summary

    Create project

    request

    POST:/rest/api/2/project

    secure

    Parameters

    Returns Promise<ProjectIdentifiers>

createProjectAvatar

  • createProjectAvatar(projectIdOrKey: string, data: any, query?: { size?: number; x?: number; y?: number }, params?: RequestParams): Promise<Avatar>
  • description

    Loads an avatar for a project. 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/2/project/{projectIdOrKey}/avatar2' 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 Set project avatar to set it as the project's displayed avatar. Permissions required: Administer projects project permission.

    tags

    Project avatars

    name

    CreateProjectAvatar

    summary

    Load project avatar

    request

    POST:/rest/api/2/project/{projectIdOrKey}/avatar2

    secure

    Parameters

    • projectIdOrKey: string
    • data: any
    • Optional query: { size?: number; x?: number; y?: number }
      • Optional size?: number
      • Optional x?: number
      • Optional y?: number
    • params: RequestParams = {}

    Returns Promise<Avatar>

createProjectCategory

createProjectRole

createScreen

createScreenScheme

createUser

  • description

    Creates a user. This resource is retained for legacy compatibility. As soon as a more suitable alternative is available this resource will be deprecated. If the user exists and has access to Jira, the operation returns a 201 status. If the user exists but does not have access to Jira, the operation returns a 400 status. Permissions required: Administer Jira global permission.

    tags

    Users

    name

    CreateUser

    summary

    Create user

    request

    POST:/rest/api/2/user

    secure

    Parameters

    Returns Promise<User>

createVersion

createWorkflow

  • description

    Creates a workflow. You can define transition rules using the shapes detailed in the following sections. If no transitional rules are specified the default system transition rules are used. #### Conditions #### Conditions enable workflow rules that govern whether a transition can execute. ##### Always false condition ##### A condition that always fails. { "type": "AlwaysFalseCondition" } ##### Block transition until approval ##### A condition that blocks issue transition if there is a pending approval. { "type": "BlockInProgressApprovalCondition" } ##### Compare number custom field condition ##### A condition that allows transition if a comparison between a number custom field and a value is true. { "type": "CompareNumberCFCondition", "configuration": { "comparator": "=", "fieldId": "customfield_10029", "fieldValue": 2 } } * comparator One of the supported comparator: =, >, and <. * fieldId The custom numeric field ID. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:float * com.pyxis.greenhopper.jira:jsw-story-points * fieldValue The value for comparison. ##### Hide from user condition ##### A condition that hides a transition from users. The transition can only be triggered from a workflow function or REST API operation. { "type": "RemoteOnlyCondition" } ##### Only assignee condition ##### A condition that allows only the assignee to execute a transition. { "type": "AllowOnlyAssignee" } ##### Only Bamboo notifications workflow condition ##### A condition that makes the transition available only to Bamboo build notifications. { "type": "OnlyBambooNotificationsCondition" } ##### Only reporter condition ##### A condition that allows only the reporter to execute a transition. { "type": "AllowOnlyReporter" } ##### Permission condition ##### A condition that allows only users with a permission to execute a transition. { "type": "PermissionCondition", "configuration": { "permissionKey": "BROWSE_PROJECTS" } } * permissionKey The permission required to perform the transition. Allowed values: built-in or app defined permissions. ##### Previous status condition ##### A condition that allows a transition based on whether an issue has or has not transitioned through a status. { "type": "PreviousStatusCondition", "configuration": { "ignoreLoopTransitions": true, "includeCurrentStatus": true, "mostRecentStatusOnly": true, "reverseCondition": true, "previousStatus": { "id": "5" } } } By default this condition allows the transition if the status, as defined by its ID in the previousStatus object, matches any previous issue status, unless: * ignoreLoopTransitions is true, then loop transitions (from and to the same status) are ignored. * includeCurrentStatus is true, then the current issue status is also checked. * mostRecentStatusOnly is true, then only the issue's preceding status (the one immediately before the current status) is checked. * reverseCondition is true, then the status must not be present. ##### Separation of duties condition ##### A condition that prevents a user to perform the transition, if the user has already performed a transition on the issue. { "type": "SeparationOfDutiesCondition", "configuration": { "fromStatus": { "id": "5" }, "toStatus": { "id": "6" } } } * fromStatus OPTIONAL. An object containing the ID of the source status of the transition that is blocked. If omitted any transition to toStatus is blocked. * toStatus An object containing the ID of the target status of the transition that is blocked. ##### Subtask blocking condition ##### A condition that blocks transition on a parent issue if any of its subtasks are in any of one or more statuses. { "type": "SubTaskBlockingCondition", "configuration": { "statuses": [ { "id": "1" }, { "id": "3" } ] } } * statuses A list of objects containing status IDs. ##### User is in any group condition ##### A condition that allows users belonging to any group from a list of groups to execute a transition. { "type": "UserInAnyGroupCondition", "configuration": { "groups": [ "administrators", "atlassian-addons-admin" ] } } * groups A list of group names. ##### User is in any project role condition ##### A condition that allows only users with at least one project roles from a list of project roles to execute a transition. { "type": "InAnyProjectRoleCondition", "configuration": { "projectRoles": [ { "id": "10002" }, { "id": "10003" }, { "id": "10012" }, { "id": "10013" } ] } } * projectRoles A list of objects containing project role IDs. ##### User is in custom field condition ##### A condition that allows only users listed in a given custom field to execute the transition. { "type": "UserIsInCustomFieldCondition", "configuration": { "allowUserInField": false, "fieldId": "customfield_10010" } } * allowUserInField If true only a user who is listed in fieldId can perform the transition, otherwise, only a user who is not listed in fieldId can perform the transition. * fieldId The ID of the field containing the list of users. ##### User is in group condition ##### A condition that allows users belonging to a group to execute a transition. { "type": "UserInGroupCondition", "configuration": { "group": "administrators" } } * group The name of the group. ##### User is in group custom field condition ##### A condition that allows users belonging to a group specified in a custom field to execute a transition. { "type": "InGroupCFCondition", "configuration": { "fieldId": "customfield_10012" } } * fieldId The ID of the field. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker * com.atlassian.jira.plugin.system.customfieldtypes:grouppicker * com.atlassian.jira.plugin.system.customfieldtypes:select * com.atlassian.jira.plugin.system.customfieldtypes:multiselect * com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons * com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes * com.pyxis.greenhopper.jira:gh-epic-status ##### User is in project role condition ##### A condition that allows users with a project role to execute a transition. { "type": "InProjectRoleCondition", "configuration": { "projectRole": { "id": "10002" } } } * projectRole An object containing the ID of a project role. ##### Value field condition ##### A conditions that allows a transition to execute if the value of a field is equal to a constant value or simply set. { "type": "ValueFieldCondition", "configuration": { "fieldId": "assignee", "fieldValue": "qm:6e1ecee6-8e64-4db6-8c85-916bb3275f51:54b56885-2bd2-4381-8239-78263442520f", "comparisonType": "NUMBER", "comparator": "=" } } * fieldId The ID of a field used in the comparison. * fieldValue The expected value of the field. * comparisonType The type of the comparison. Allowed values: STRING, NUMBER, DATE, DATE_WITHOUT_TIME, or OPTIONID. * comparator One of the supported comparator: >, >=, =, <=, <, !=. Notes: * If you choose the comparison type STRING, only = and != are valid options. * You may leave fieldValue empty when comparison type is != to indicate that a value is required in the field. * For date fields without time format values as yyyy-MM-dd, and for those with time as yyyy-MM-dd HH:mm. For example, for July 16 2021 use 2021-07-16, for 8:05 AM use 2021-07-16 08:05, and for 4 PM: 2021-07-16 16:00. #### Validators #### Validators check that any input made to the transition is valid before the transition is performed. ##### Date field validator ##### A validator that compares two dates. { "type": "DateFieldValidator", "configuration": { "comparator": ">", "date1": "updated", "date2": "created", "expression": "1d", "includeTime": true } } * comparator One of the supported comparator: >, >=, =, <=, <, or !=. * date1 The date field to validate. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:datepicker * com.atlassian.jira.plugin.system.customfieldtypes:datetime * com.atlassian.jpo:jpo-custom-field-baseline-end * com.atlassian.jpo:jpo-custom-field-baseline-start * duedate * created * updated * Resolved * date2 The second date field. Required, if expression is not passed. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:datepicker * com.atlassian.jira.plugin.system.customfieldtypes:datetime * com.atlassian.jpo:jpo-custom-field-baseline-end * com.atlassian.jpo:jpo-custom-field-baseline-start * duedate * created * updated * Resolved * expression An expression specifying an offset. Required, if date2 is not passed. Offsets are built with a number, with - as prefix for the past, and one of these time units: d for day, w for week, m for month, or y for year. For example, -2d means two days into the past and 1w means one week into the future. The now keyword enables a comparison with the current date. * includeTime If true, then the time part of the data is included for the comparison. If the field doesn't have a time part, 00:00:00 is used. ##### Windows date validator ##### A validator that checks that a date falls on or after a reference date and before or on the reference date plus a number of days. { "type": "WindowsDateValidator", "configuration": { "date1": "customfield_10009", "date2": "created", "windowsDays": 5 } } * date1 The date field to validate. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:datepicker * com.atlassian.jira.plugin.system.customfieldtypes:datetime * com.atlassian.jpo:jpo-custom-field-baseline-end * com.atlassian.jpo:jpo-custom-field-baseline-start * duedate * created * updated * Resolved * date2 The reference date. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:datepicker * com.atlassian.jira.plugin.system.customfieldtypes:datetime * com.atlassian.jpo:jpo-custom-field-baseline-end * com.atlassian.jpo:jpo-custom-field-baseline-start * duedate * created * updated * Resolved * windowsDays A positive integer indicating a number of days. ##### Field required validator ##### A validator that checks fields are not empty. By default, if a field is not included in the current context it's ignored and not validated. { "type": "FieldRequiredValidator", "configuration": { "ignoreContext": true, "errorMessage": "Hey", "fieldIds": [ "versions", "customfield_10037", "customfield_10003" ] } } * ignoreContext If true, then the context is ignored and all the fields are validated. * errorMessage OPTIONAL. The error message displayed when one or more fields are empty. A default error message is shown if an error message is not provided. * fieldIds The list of fields to validate. ##### Field changed validator ##### A validator that checks that a field value is changed. However, this validation can be ignored for users from a list of groups. { "type": "FieldChangedValidator", "configuration": { "fieldId": "comment", "errorMessage": "Hey", "exemptedGroups": [ "administrators", "atlassian-addons-admin" ] } } * fieldId The ID of a field. * errorMessage OPTIONAL. The error message displayed if the field is not changed. A default error message is shown if the error message is not provided. * exemptedGroups OPTIONAL. The list of groups. ##### Field has single value validator ##### A validator that checks that a multi-select field has only one value. Optionally, the validation can ignore values copied from subtasks. { "type": "FieldHasSingleValueValidator", "configuration": { "fieldId": "attachment, "excludeSubtasks": true } } * fieldId The ID of a field. * excludeSubtasks If true, then values copied from subtasks are ignored. ##### Parent status validator ##### A validator that checks the status of the parent issue of a subtask. ÃŒf the issue is not a subtask, no validation is performed. { "type": "ParentStatusValidator", "configuration": { "parentStatuses": [ { "id":"1" }, { "id":"2" } ] } } * parentStatus The list of required parent issue statuses. ##### Permission validator ##### A validator that checks the user has a permission. { "type": "PermissionValidator", "configuration": { "permissionKey": "ADMINISTER_PROJECTS" } } * permissionKey The permission required to perform the transition. Allowed values: built-in or app defined permissions. ##### Previous status validator ##### A validator that checks if the issue has held a status. { "type": "PreviousStatusValidator", "configuration": { "mostRecentStatusOnly": false, "previousStatus": { "id": "15" } } } * mostRecentStatusOnly If true, then only the issue's preceding status (the one immediately before the current status) is checked. * previousStatus An object containing the ID of an issue status. ##### Regular expression validator ##### A validator that checks the content of a field against a regular expression. { "type": "RegexpFieldValidator", "configuration": { "regExp": "[0-9]", "fieldId": "customfield_10029" } } * regExpA regular expression. * fieldId The ID of a field. Allowed field types: * com.atlassian.jira.plugin.system.customfieldtypes:select * com.atlassian.jira.plugin.system.customfieldtypes:multiselect * com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons * com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes * com.atlassian.jira.plugin.system.customfieldtypes:textarea * com.atlassian.jira.plugin.system.customfieldtypes:textfield * com.atlassian.jira.plugin.system.customfieldtypes:url * com.atlassian.jira.plugin.system.customfieldtypes:float * com.pyxis.greenhopper.jira:jsw-story-points * com.pyxis.greenhopper.jira:gh-epic-status * description * summary ##### User permission validator ##### A validator that checks if a user has a permission. Obsolete. You may encounter this validator when getting transition rules and can pass it when updating or creating rules, for example, when you want to duplicate the rules from a workflow on a new workflow. { "type": "UserPermissionValidator", "configuration": { "permissionKey": "BROWSE_PROJECTS", "nullAllowed": false, "username": "TestUser" } } * permissionKey The permission to be validated. Allowed values: built-in or app defined permissions. * nullAllowed If true, allows the transition when username is empty. * username The username to validate against the permissionKey. #### Post functions #### Post functions carry out any additional processing required after a Jira workflow transition is executed. ##### Fire issue event function ##### A post function that fires an event that is processed by the listeners. { "type": "FireIssueEventFunction", "configuration": { "event": { "id":"1" } } } Note: If provided, this post function overrides the default FireIssueEventFunction. Can be included once in a transition. * event An object containing the ID of the issue event. ##### Update issue status ##### A post function that sets issue status to the linked status of the destination workflow status. { "type": "UpdateIssueStatusFunction" } Note: This post function is a default function in global and directed transitions. It can only be added to the initial transition and can only be added once. ##### Create comment ##### A post function that adds a comment entered during the transition to an issue. { "type": "CreateCommentFunction" } Note: This post function is a default function in global and directed transitions. It can only be added to the initial transition and can only be added once. ##### Store issue ##### A post function that stores updates to an issue. { "type": "IssueStoreFunction" } Note: This post function can only be added to the initial transition and can only be added once. ##### Assign to current user function ##### A post function that assigns the issue to the current user if the current user has the ASSIGNABLE_USER permission. { "type": "AssignToCurrentUserFunction" } Note: This post function can be included once in a transition. ##### Assign to lead function ##### A post function that assigns the issue to the project or component lead developer. { "type": "AssignToLeadFunction" } Note: This post function can be included once in a transition. ##### Assign to reporter function ##### A post function that assigns the issue to the reporter. { "type": "AssignToReporterFunction" } Note: This post function can be included once in a transition. ##### Clear field value function ##### A post function that clears the value from a field. { "type": "ClearFieldValuePostFunction", "configuration": { "fieldId": "assignee" } } * fieldId The ID of the field. ##### Copy value from other field function ##### A post function that copies the value of one field to another, either within an issue or from parent to subtask. { "type": "CopyValueFromOtherFieldPostFunction", "configuration": { "sourceFieldId": "assignee", "destinationFieldId": "creator", "copyType": "same" } } * sourceFieldId The ID of the source field. * destinationFieldId The ID of the destination field. * copyType Use same to copy the value from a field inside the issue, or parent to copy the value from the parent issue. ##### Create Crucible review workflow function ##### A post function that creates a Crucible review for all unreviewed code for the issue. { "type": "CreateCrucibleReviewWorkflowFunction" } Note: This post function can be included once in a transition. ##### Set issue security level based on user's project role function ##### A post function that sets the issue's security level if the current user has a project role. { "type": "SetIssueSecurityFromRoleFunction", "configuration": { "projectRole": { "id":"10002" }, "issueSecurityLevel": { "id":"10000" } } } * projectRole An object containing the ID of the project role. * issueSecurityLevel OPTIONAL. The object containing the ID of the security level. If not passed, then the security level is set to none. ##### Trigger a webhook function ##### A post function that triggers a webhook. { "type": "TriggerWebhookFunction", "configuration": { "webhook": { "id": "1" } } } * webhook An object containing the ID of the webhook listener to trigger. ##### Update issue custom field function ##### A post function that updates the content of an issue custom field. { "type": "UpdateIssueCustomFieldPostFunction", "configuration": { "mode": "append", "fieldId": "customfield_10003", "fieldValue": "yikes" } } * mode Use replace to override the field content with fieldValue or append to add fieldValue to the end of the field content. * fieldId The ID of the field. * fieldValue The update content. ##### Update issue field function ##### A post function that updates a simple issue field. { "type": "UpdateIssueFieldFunction", "configuration": { "fieldId": "assignee", "fieldValue": "5f0c277e70b8a90025a00776" } } * fieldId The ID of the field. Allowed field types: * assignee * description * environment * priority * resolution * summary * timeoriginalestimate * timeestimate * timespent * fieldValue The update value. * If the fieldId is assignee, the fieldValue should be one of these values: * an account ID. * automatic. * a blank string, which sets the value to unassigned. #### Connect rules #### Connect rules are conditions, validators, and post functions of a transition that are registered by Connect apps. To create a rule registered by the app, the app must be enabled and the rule's module must exist. { "type": "appKey__moduleKey", "configuration": { "value":"{"isValid":"true"}" } } * type A Connect rule key in a form of appKey__moduleKey. * value The stringified JSON configuration of a Connect rule. Permissions required: Administer Jira global permission.

    tags

    Workflows

    name

    CreateWorkflow

    summary

    Create workflow

    request

    POST:/rest/api/2/workflow

    secure

    Parameters

    Returns Promise<WorkflowIDs>

createWorkflowScheme

createWorkflowSchemeDraftFromParent

  • description

    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.

    tags

    Workflow scheme drafts

    name

    CreateWorkflowSchemeDraftFromParent

    summary

    Create draft workflow scheme

    request

    POST:/rest/api/2/workflowscheme/{id}/createdraft

    secure

    Parameters

    Returns Promise<WorkflowScheme>

createWorkflowTransitionProperty

deleteActor

  • deleteActor(projectIdOrKey: string, id: number, query?: { group?: string; user?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes actors from a project role for the project. To remove default actors from the project role, use Delete default actors from project role. This operation can be accessed anonymously. Permissions required: Administer Projects project permission for the project or Administer Jira global permission.

    tags

    Project role actors

    name

    DeleteActor

    summary

    Delete actors from project role

    request

    DELETE:/rest/api/2/project/{projectIdOrKey}/role/{id}

    secure

    Parameters

    • projectIdOrKey: string
    • id: number
    • Optional query: { group?: string; user?: string }
      • Optional group?: string
      • Optional user?: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteAndReplaceVersion

  • description

    Deletes a project version. Alternative versions can be provided to update issues that use the deleted version in fixVersion, affectedVersion, or any version picker custom fields. If alternatives are not provided, occurrences of fixVersion, affectedVersion, and any version picker custom field, that contain the deleted version, are cleared. Any replacement version must be in the same project as the version being deleted and cannot be the version being deleted. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer Projects project permission for the project that contains the version.

    tags

    Project versions

    name

    DeleteAndReplaceVersion

    summary

    Delete and replace version

    request

    POST:/rest/api/2/version/{id}/removeAndSwap

    secure

    Parameters

    Returns Promise<any>

deleteAvatar

  • deleteAvatar(type: "issuetype" | "project", owningObjectId: string, id: number, params?: RequestParams): Promise<void>
  • description

    Deletes an avatar from a project or issue type. Permissions required: Administer Jira global permission.

    tags

    Avatars

    name

    DeleteAvatar

    summary

    Delete avatar

    request

    DELETE:/rest/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}

    secure

    Parameters

    • type: "issuetype" | "project"
    • owningObjectId: string
    • id: number
    • params: RequestParams = {}

    Returns Promise<void>

deleteComment

  • deleteComment(issueIdOrKey: string, id: string, params?: RequestParams): Promise<void>
  • description

    Deletes a comment. Permissions required: * Browse projects project permission for the project that the issue containing the comment is in. * If issue-level security is configured, issue-level security permission to view the issue. * Delete all comments project permission to delete any comment or Delete own comments to delete comment created by the user, * If the comment has visibility restrictions, the user belongs to the group or has the role visibility is restricted to.

    tags

    Issue comments

    name

    DeleteComment

    summary

    Delete comment

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/comment/{id}

    secure

    Parameters

    Returns Promise<void>

deleteCommentProperty

  • deleteCommentProperty(commentId: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes a comment property. Permissions required: either of: * Edit All Comments project permission to delete a property from any comment. * Edit Own Comments project permission to delete a property from a comment created by the user. Also, when the visibility of a comment is restricted to a role or group the user must be a member of that role or group.

    tags

    Issue comment properties

    name

    DeleteCommentProperty

    summary

    Delete comment property

    request

    DELETE:/rest/api/2/comment/{commentId}/properties/{propertyKey}

    secure

    Parameters

    • commentId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteComponent

  • deleteComponent(id: string, query?: { moveIssuesTo?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a component. This operation can be accessed anonymously. Permissions required: Administer projects project permission for the project containing the component or Administer Jira global permission.

    tags

    Project components

    name

    DeleteComponent

    summary

    Delete component

    request

    DELETE:/rest/api/2/component/{id}

    secure

    Parameters

    • id: string
    • Optional query: { moveIssuesTo?: string }
      • Optional moveIssuesTo?: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteCustomField

  • deleteCustomField(id: string, params?: RequestParams): Promise<any>
  • description

    Deletes a custom field. The custom field is deleted whether it is in the trash or not. See Edit or delete a custom field for more information on trashing and deleting custom fields. This operation is asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain subsequent updates. Permissions required: Administer Jira global permission.

    tags

    Issue fields

    name

    DeleteCustomField

    summary

    Delete custom field

    request

    DELETE:/rest/api/2/field/{id}

    secure

    Parameters

    Returns Promise<any>

deleteCustomFieldContext

  • deleteCustomFieldContext(fieldId: string, contextId: number, params?: RequestParams): Promise<any>

deleteCustomFieldOption

  • deleteCustomFieldOption(fieldId: string, contextId: number, optionId: number, params?: RequestParams): Promise<void>
  • description

    Deletes a custom field option. Options with cascading options cannot be deleted without deleting the cascading options first. This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations. Permissions required: Administer Jira global permission.

    tags

    Issue custom field options

    name

    DeleteCustomFieldOption

    summary

    Delete custom field options (context)

    request

    DELETE:/rest/api/2/field/{fieldId}/context/{contextId}/option/{optionId}

    secure

    Parameters

    • fieldId: string
    • contextId: number
    • optionId: number
    • params: RequestParams = {}

    Returns Promise<void>

deleteDashboard

  • deleteDashboard(id: string, params?: RequestParams): Promise<void>
  • description

    Deletes a dashboard. Permissions required: None The dashboard to be deleted must be owned by the user.

    tags

    Dashboards

    name

    DeleteDashboard

    summary

    Delete dashboard

    request

    DELETE:/rest/api/2/dashboard/{id}

    secure

    Parameters

    Returns Promise<void>

deleteDashboardItemProperty

  • deleteDashboardItemProperty(dashboardId: string, itemId: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes a dashboard item property. This operation can be accessed anonymously. Permissions required: The user must be the owner of the dashboard. Note, users with the Administer Jira global permission are considered owners of the System dashboard.

    tags

    Dashboards

    name

    DeleteDashboardItemProperty

    summary

    Delete dashboard item property

    request

    DELETE:/rest/api/2/dashboard/{dashboardId}/items/{itemId}/properties/{propertyKey}

    secure

    Parameters

    • dashboardId: string
    • itemId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteDefaultWorkflow

  • description

    Resets the default workflow for a workflow scheme. That is, the default workflow is set to Jira's system workflow (the jira workflow). Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    DeleteDefaultWorkflow

    summary

    Delete default workflow

    request

    DELETE:/rest/api/2/workflowscheme/{id}/default

    secure

    Parameters

    • id: number
    • Optional query: { updateDraftIfNeeded?: boolean }
      • Optional updateDraftIfNeeded?: boolean
    • params: RequestParams = {}

    Returns Promise<WorkflowScheme>

deleteDraftDefaultWorkflow

  • description

    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.

    tags

    Workflow scheme drafts

    name

    DeleteDraftDefaultWorkflow

    summary

    Delete draft default workflow

    request

    DELETE:/rest/api/2/workflowscheme/{id}/draft/default

    secure

    Parameters

    Returns Promise<WorkflowScheme>

deleteDraftWorkflowMapping

  • deleteDraftWorkflowMapping(id: number, query: { workflowName: string }, params?: RequestParams): Promise<void>
  • description

    Deletes the workflow-issue type mapping for a workflow in a workflow scheme's draft. Permissions required: Administer Jira global permission.

    tags

    Workflow scheme drafts

    name

    DeleteDraftWorkflowMapping

    summary

    Delete issue types for workflow in draft workflow scheme

    request

    DELETE:/rest/api/2/workflowscheme/{id}/draft/workflow

    secure

    Parameters

    • id: number
    • query: { workflowName: string }
      • workflowName: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteFavouriteForFilter

  • deleteFavouriteForFilter(id: number, query?: { expand?: string }, params?: RequestParams): Promise<Filter>
  • description

    Removes a filter as a favorite for the user. Note that this operation only removes filters visible to the user from the user's favorites list. For example, if the user favorites a public filter that is subsequently made private (and is therefore no longer visible on their favorites list) they cannot remove it from their favorites list. Permissions required: Permission to access Jira.

    tags

    Filters

    name

    DeleteFavouriteForFilter

    summary

    Remove filter as favorite

    request

    DELETE:/rest/api/2/filter/{id}/favourite

    secure

    Parameters

    • id: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter>

deleteFieldConfiguration

  • deleteFieldConfiguration(id: number, params?: RequestParams): Promise<any>
  • description

    Deletes a field configuration. This operation can only delete configurations used in company-managed (classic) projects. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    DeleteFieldConfiguration

    summary

    Delete field configuration

    request

    DELETE:/rest/api/2/fieldconfiguration/{id}

    secure

    Parameters

    Returns Promise<any>

deleteFieldConfigurationScheme

  • deleteFieldConfigurationScheme(id: number, params?: RequestParams): Promise<any>
  • description

    Deletes a field configuration scheme. This operation can only delete field configuration schemes used in company-managed (classic) projects. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    DeleteFieldConfigurationScheme

    summary

    Delete field configuration scheme

    request

    DELETE:/rest/api/2/fieldconfigurationscheme/{id}

    secure

    Parameters

    Returns Promise<any>

deleteFilter

  • deleteFilter(id: number, params?: RequestParams): Promise<void>
  • description

    Delete a filter. Permissions required: Permission to access Jira, however filters can only be deleted by the creator of the filter or a user with Administer Jira global permission.

    tags

    Filters

    name

    DeleteFilter

    summary

    Delete filter

    request

    DELETE:/rest/api/2/filter/{id}

    secure

    Parameters

    Returns Promise<void>

deleteInactiveWorkflow

  • deleteInactiveWorkflow(entityId: string, params?: RequestParams): Promise<void>
  • description

    Deletes a workflow. The workflow cannot be deleted if it is: * an active workflow. * a system workflow. * associated with any workflow scheme. * associated with any draft workflow scheme. Permissions required: Administer Jira global permission.

    tags

    Workflows

    name

    DeleteInactiveWorkflow

    summary

    Delete inactive workflow

    request

    DELETE:/rest/api/2/workflow/{entityId}

    secure

    Parameters

    Returns Promise<void>

deleteIssue

  • deleteIssue(issueIdOrKey: string, query?: { deleteSubtasks?: "true" | "false" }, params?: RequestParams): Promise<void>
  • description

    Deletes an issue. An issue cannot be deleted if it has one or more subtasks. To delete an issue with subtasks, set deleteSubtasks. This causes the issue's subtasks to be deleted with the issue. This operation can be accessed anonymously. Permissions required: * Browse projects and Delete issues project permission for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    DeleteIssue

    summary

    Delete issue

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { deleteSubtasks?: "true" | "false" }
      • Optional deleteSubtasks?: "true" | "false"
    • params: RequestParams = {}

    Returns Promise<void>

deleteIssueFieldOption

  • deleteIssueFieldOption(fieldKey: string, optionId: number, params?: RequestParams): Promise<any>
  • description

    Deletes an option from a select list issue field. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    DeleteIssueFieldOption

    summary

    Delete issue field option

    request

    DELETE:/rest/api/2/field/{fieldKey}/option/{optionId}

    secure

    Parameters

    Returns Promise<any>

deleteIssueLink

  • deleteIssueLink(linkId: string, params?: RequestParams): Promise<void>
  • description

    Deletes an issue link. This operation can be accessed anonymously. Permissions required: * Browse project project permission for all the projects containing the issues in the link. * Link issues project permission for at least one of the projects containing issues in the link. * If issue-level security is configured, permission to view both of the issues.

    tags

    Issue links

    name

    DeleteIssueLink

    summary

    Delete issue link

    request

    DELETE:/rest/api/2/issueLink/{linkId}

    secure

    Parameters

    Returns Promise<void>

deleteIssueLinkType

  • deleteIssueLinkType(issueLinkTypeId: string, params?: RequestParams): Promise<void>

deleteIssueProperty

  • deleteIssueProperty(issueIdOrKey: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes an issue's property. This operation can be accessed anonymously. Permissions required: * Browse projects and Edit issues project permissions for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue properties

    name

    DeleteIssueProperty

    summary

    Delete issue property

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteIssueType

  • deleteIssueType(id: string, query?: { alternativeIssueTypeId?: string }, params?: RequestParams): Promise<void>
  • description

    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.

    tags

    Issue types

    name

    DeleteIssueType

    summary

    Delete issue type

    request

    DELETE:/rest/api/2/issuetype/{id}

    secure

    Parameters

    • id: string
    • Optional query: { alternativeIssueTypeId?: string }
      • Optional alternativeIssueTypeId?: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteIssueTypeProperty

  • deleteIssueTypeProperty(issueTypeId: string, propertyKey: string, params?: RequestParams): Promise<void>

deleteIssueTypeScheme

  • deleteIssueTypeScheme(issueTypeSchemeId: number, params?: RequestParams): Promise<any>
  • description

    Deletes an issue type scheme. Only issue type schemes used in classic projects can be deleted. Any projects assigned to the scheme are reassigned to the default issue type scheme. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    DeleteIssueTypeScheme

    summary

    Delete issue type scheme

    request

    DELETE:/rest/api/2/issuetypescheme/{issueTypeSchemeId}

    secure

    Parameters

    Returns Promise<any>

deleteIssueTypeScreenScheme

  • deleteIssueTypeScreenScheme(issueTypeScreenSchemeId: string, params?: RequestParams): Promise<any>
  • description

    Deletes an issue type screen scheme. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    DeleteIssueTypeScreenScheme

    summary

    Delete issue type screen scheme

    request

    DELETE:/rest/api/2/issuetypescreenscheme/{issueTypeScreenSchemeId}

    secure

    Parameters

    Returns Promise<any>

deleteLocale

  • description

    Deprecated, use Update a user profile from the user management REST API instead. Deletes the locale of the user, which restores the default setting. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    DeleteLocale

    summary

    Delete locale

    request

    DELETE:/rest/api/2/mypreferences/locale

    deprecated
    secure

    Parameters

    Returns Promise<any>

deletePermissionScheme

  • deletePermissionScheme(schemeId: number, params?: RequestParams): Promise<void>

deletePermissionSchemeEntity

  • deletePermissionSchemeEntity(schemeId: number, permissionId: number, params?: RequestParams): Promise<void>

deleteProject

  • deleteProject(projectIdOrKey: string, query?: { enableUndo?: boolean }, params?: RequestParams): Promise<void>
  • description

    Deletes a project. You can't delete a project if it's archived. To delete an archived project, restore the project and then delete it. To restore a project, use the Jira UI. Permissions required: Administer Jira global permission.

    tags

    Projects

    name

    DeleteProject

    summary

    Delete project

    request

    DELETE:/rest/api/2/project/{projectIdOrKey}

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { enableUndo?: boolean }
      • Optional enableUndo?: boolean
    • params: RequestParams = {}

    Returns Promise<void>

deleteProjectAsynchronously

  • deleteProjectAsynchronously(projectIdOrKey: string, params?: RequestParams): Promise<any>
  • description

    Deletes a project asynchronously. This operation is: * transactional, that is, if part of the delete fails the project is not deleted. * asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain subsequent updates. Permissions required: Administer Jira global permission.

    tags

    Projects

    name

    DeleteProjectAsynchronously

    summary

    Delete project asynchronously

    request

    POST:/rest/api/2/project/{projectIdOrKey}/delete

    secure

    Parameters

    Returns Promise<any>

deleteProjectAvatar

  • deleteProjectAvatar(projectIdOrKey: string, id: number, params?: RequestParams): Promise<void>
  • description

    Deletes a custom avatar from a project. Note that system avatars cannot be deleted. Permissions required: Administer projects project permission.

    tags

    Project avatars

    name

    DeleteProjectAvatar

    summary

    Delete project avatar

    request

    DELETE:/rest/api/2/project/{projectIdOrKey}/avatar/{id}

    secure

    Parameters

    Returns Promise<void>

deleteProjectProperty

  • deleteProjectProperty(projectIdOrKey: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes the property from a project. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer Projects project permission for the project containing the property.

    tags

    Project properties

    name

    DeleteProjectProperty

    summary

    Delete project property

    request

    DELETE:/rest/api/2/project/{projectIdOrKey}/properties/{propertyKey}

    secure

    Parameters

    • projectIdOrKey: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteProjectRole

  • deleteProjectRole(id: number, query?: { swap?: number }, params?: RequestParams): Promise<void>
  • description

    Deletes a project role. You must specify a replacement project role if you wish to delete a project role that is in use. Permissions required: Administer Jira global permission.

    tags

    Project roles

    name

    DeleteProjectRole

    summary

    Delete project role

    request

    DELETE:/rest/api/2/role/{id}

    secure

    Parameters

    • id: number
    • Optional query: { swap?: number }
      • Optional swap?: number
    • params: RequestParams = {}

    Returns Promise<void>

deleteProjectRoleActorsFromRole

  • deleteProjectRoleActorsFromRole(id: number, query?: { group?: string; user?: string }, params?: RequestParams): Promise<ProjectRole>
  • description

    Deletes the default actors from a project role. You may delete a group or user, but you cannot delete a group and a user in the same request. Changing a project role's default actors does not affect project role members for projects already created. Permissions required: Administer Jira global permission.

    tags

    Project role actors

    name

    DeleteProjectRoleActorsFromRole

    summary

    Delete default actors from project role

    request

    DELETE:/rest/api/2/role/{id}/actors

    secure

    Parameters

    • id: number
    • Optional query: { group?: string; user?: string }
      • Optional group?: string
      • Optional user?: string
    • params: RequestParams = {}

    Returns Promise<ProjectRole>

deleteRemoteIssueLinkByGlobalId

  • deleteRemoteIssueLinkByGlobalId(issueIdOrKey: string, query: { globalId: string }, params?: RequestParams): Promise<void>
  • description

    Deletes the remote issue link from the issue using the link's global ID. Where the global ID includes reserved URL characters these must be escaped in the request. For example, pass system=http://www.mycompany.com/support&id=1 as system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is implemented, issue-level security permission to view the issue.

    tags

    Issue remote links

    name

    DeleteRemoteIssueLinkByGlobalId

    summary

    Delete remote issue link by global ID

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/remotelink

    secure

    Parameters

    • issueIdOrKey: string
    • query: { globalId: string }
      • globalId: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteRemoteIssueLinkById

  • deleteRemoteIssueLinkById(issueIdOrKey: string, linkId: string, params?: RequestParams): Promise<void>
  • description

    Deletes a remote issue link from an issue. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects, Edit issues, and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue remote links

    name

    DeleteRemoteIssueLinkById

    summary

    Delete remote issue link by ID

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/remotelink/{linkId}

    secure

    Parameters

    Returns Promise<void>

deleteScreen

  • deleteScreen(screenId: number, params?: RequestParams): Promise<void>
  • description

    Deletes a screen. A screen cannot be deleted if it is used in a screen scheme, workflow, or workflow draft. Only screens used in classic projects can be deleted.

    tags

    Screens

    name

    DeleteScreen

    summary

    Delete screen

    request

    DELETE:/rest/api/2/screens/{screenId}

    secure

    Parameters

    Returns Promise<void>

deleteScreenScheme

  • deleteScreenScheme(screenSchemeId: string, params?: RequestParams): Promise<void>
  • description

    Deletes a screen scheme. A screen scheme cannot be deleted if it is used in an issue type screen scheme. Only screens schemes used in classic projects can be deleted. Permissions required: Administer Jira global permission.

    tags

    Screen schemes

    name

    DeleteScreenScheme

    summary

    Delete screen scheme

    request

    DELETE:/rest/api/2/screenscheme/{screenSchemeId}

    secure

    Parameters

    Returns Promise<void>

deleteScreenTab

  • deleteScreenTab(screenId: number, tabId: number, params?: RequestParams): Promise<void>

deleteSharePermission

  • deleteSharePermission(id: number, permissionId: number, params?: RequestParams): Promise<void>
  • description

    Deletes a share permission from a filter. Permissions required: Permission to access Jira and the user must own the filter.

    tags

    Filter sharing

    name

    DeleteSharePermission

    summary

    Delete share permission

    request

    DELETE:/rest/api/2/filter/{id}/permission/{permissionId}

    secure

    Parameters

    Returns Promise<void>

deleteUserProperty

  • deleteUserProperty(propertyKey: string, query?: { accountId?: string; userKey?: string; username?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a property from a user. Note: This operation does not access the user properties created and maintained in Jira. Permissions required: * Administer Jira global permission, to delete a property from any user. * Access to Jira, to delete a property from the calling user's record.

    tags

    User properties

    name

    DeleteUserProperty

    summary

    Delete user property

    request

    DELETE:/rest/api/2/user/properties/{propertyKey}

    secure

    Parameters

    • propertyKey: string
    • Optional query: { accountId?: string; userKey?: string; username?: string }
      • Optional accountId?: string
      • Optional userKey?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteVersion

  • deleteVersion(id: string, query?: { moveAffectedIssuesTo?: string; moveFixIssuesTo?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a project version. Deprecated, use Delete and replace version that supports swapping version values in custom fields, in addition to the swapping for fixVersion and affectedVersion provided in this resource. Alternative versions can be provided to update issues that use the deleted version in fixVersion or affectedVersion. If alternatives are not provided, occurrences of fixVersion and affectedVersion that contain the deleted version are cleared. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer Projects project permission for the project that contains the version.

    tags

    Project versions

    name

    DeleteVersion

    summary

    Delete version

    request

    DELETE:/rest/api/2/version/{id}

    deprecated
    secure

    Parameters

    • id: string
    • Optional query: { moveAffectedIssuesTo?: string; moveFixIssuesTo?: string }
      • Optional moveAffectedIssuesTo?: string
      • Optional moveFixIssuesTo?: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteWebhookById

deleteWorkflowMapping

  • deleteWorkflowMapping(id: number, query: { updateDraftIfNeeded?: boolean; workflowName: string }, params?: RequestParams): Promise<void>
  • description

    Deletes the workflow-issue type mapping for a workflow in a workflow scheme. Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the workflow-issue type mapping deleted. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    DeleteWorkflowMapping

    summary

    Delete issue types for workflow in workflow scheme

    request

    DELETE:/rest/api/2/workflowscheme/{id}/workflow

    secure

    Parameters

    • id: number
    • query: { updateDraftIfNeeded?: boolean; workflowName: string }
      • Optional updateDraftIfNeeded?: boolean
      • workflowName: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteWorkflowScheme

  • deleteWorkflowScheme(id: number, params?: RequestParams): Promise<void>
  • description

    Deletes a workflow scheme. Note that a workflow scheme cannot be deleted if it is active (that is, being used by at least one project). Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    DeleteWorkflowScheme

    summary

    Delete workflow scheme

    request

    DELETE:/rest/api/2/workflowscheme/{id}

    secure

    Parameters

    Returns Promise<void>

deleteWorkflowSchemeDraft

  • deleteWorkflowSchemeDraft(id: number, params?: RequestParams): Promise<void>

deleteWorkflowSchemeDraftIssueType

deleteWorkflowSchemeIssueType

  • deleteWorkflowSchemeIssueType(id: number, issueType: string, query?: { updateDraftIfNeeded?: boolean }, params?: RequestParams): Promise<WorkflowScheme>
  • description

    Deletes the issue type-workflow mapping for an issue type in a workflow scheme. Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    DeleteWorkflowSchemeIssueType

    summary

    Delete workflow for issue type in workflow scheme

    request

    DELETE:/rest/api/2/workflowscheme/{id}/issuetype/{issueType}

    secure

    Parameters

    • id: number
    • issueType: string
    • Optional query: { updateDraftIfNeeded?: boolean }
      • Optional updateDraftIfNeeded?: boolean
    • params: RequestParams = {}

    Returns Promise<WorkflowScheme>

deleteWorkflowTransitionProperty

  • deleteWorkflowTransitionProperty(transitionId: number, query: { key: string; workflowMode?: "live" | "draft"; workflowName: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a property from a workflow transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties. Permissions required: Administer Jira global permission.

    tags

    Workflow transition properties

    name

    DeleteWorkflowTransitionProperty

    summary

    Delete workflow transition property

    request

    DELETE:/rest/api/2/workflow/transitions/{transitionId}/properties

    secure

    Parameters

    • transitionId: number
    • query: { key: string; workflowMode?: "live" | "draft"; workflowName: string }
      • key: string
      • Optional workflowMode?: "live" | "draft"
      • workflowName: string
    • params: RequestParams = {}

    Returns Promise<void>

deleteWorkflowTransitionRuleConfigurations

deleteWorklog

  • deleteWorklog(issueIdOrKey: string, id: string, query?: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; increaseBy?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean }, params?: RequestParams): Promise<void>
  • description

    Deletes a worklog from an issue. Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * Delete all worklogs project permission to delete any worklog or Delete own worklogs to delete worklogs created by the user, * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklogs

    name

    DeleteWorklog

    summary

    Delete worklog

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/worklog/{id}

    secure

    Parameters

    • issueIdOrKey: string
    • id: string
    • Optional query: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; increaseBy?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean }
      • Optional adjustEstimate?: "new" | "leave" | "manual" | "auto"
      • Optional increaseBy?: string
      • Optional newEstimate?: string
      • Optional notifyUsers?: boolean
      • Optional overrideEditableFlag?: boolean
    • params: RequestParams = {}

    Returns Promise<void>

deleteWorklogProperty

  • deleteWorklogProperty(issueIdOrKey: string, worklogId: string, propertyKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes a worklog property. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklog properties

    name

    DeleteWorklogProperty

    summary

    Delete worklog property

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • worklogId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<void>

doTransition

  • description

    Performs an issue transition and, if the transition has a screen, updates the fields from the transition screen. sortByCategory To update the fields on the transition screen, specify the fields in the fields or update parameters in the request body. Get details about the fields using Get transitions with the transitions.fields expand. This operation can be accessed anonymously. Permissions required: * Browse projects and Transition issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    DoTransition

    summary

    Transition issue

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/transitions

    secure

    Parameters

    Returns Promise<any>

dynamicModulesResourceGetModulesGet

dynamicModulesResourceRegisterModulesPost

dynamicModulesResourceRemoveModulesDelete

  • dynamicModulesResourceRemoveModulesDelete(query?: { moduleKey?: string[] }, params?: RequestParams): Promise<void>
  • description

    Remove all or a list of modules registered by the calling app. Permissions required: Only Connect apps can make this request.

    tags

    Dynamic modules

    name

    DynamicModulesResourceRemoveModulesDelete

    summary

    Remove modules

    request

    DELETE:/rest/atlassian-connect/1/app/module/dynamic

    Parameters

    • Optional query: { moduleKey?: string[] }
      • Optional moduleKey?: string[]
    • params: RequestParams = {}

    Returns Promise<void>

editIssue

  • editIssue(issueIdOrKey: string, data: IssueUpdateDetails, query?: { notifyUsers?: boolean; overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean }, params?: RequestParams): Promise<any>
  • description

    Edits an issue. A transition may be applied and issue properties updated as part of the edit. The edits to the issue's fields are defined using update and fields. The fields that can be edited are determined using Get edit issue metadata. The parent field may be set by key or ID. For standard issue types, the parent may be removed by setting update.parent.set.none to true. Connect app users with admin permission (from user permissions and app scopes) and Forge app users with the manage:jira-configuration scope can override the screen security configuration using overrideScreenSecurity and overrideEditableFlag. This operation can be accessed anonymously. Permissions required: * Browse projects and Edit issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    EditIssue

    summary

    Edit issue

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}

    secure

    Parameters

    • issueIdOrKey: string
    • data: IssueUpdateDetails
    • Optional query: { notifyUsers?: boolean; overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean }
      • Optional notifyUsers?: boolean
      • Optional overrideEditableFlag?: boolean
      • Optional overrideScreenSecurity?: boolean
    • params: RequestParams = {}

    Returns Promise<any>

evaluateJiraExpression

  • description

    Evaluates a Jira expression and returns its value. This resource can be used to test Jira expressions that you plan to use elsewhere, or to fetch data in a flexible way. Consult the Jira expressions documentation for more details. #### Context variables #### The following context variables are available to Jira expressions evaluated by this resource. Their presence depends on various factors; usually you need to manually request them in the context object sent in the payload, but some of them are added automatically under certain conditions. * user (User): The current user. Always available and equal to null if the request is anonymous. * app (App): The Connect app that made the request. Available only for authenticated requests made by Connect Apps (read more here: Authentication for Connect apps). * issue (Issue): The current issue. Available only when the issue is provided in the request context object. * issues (List of Issues): A collection of issues matching a JQL query. Available only when JQL is provided in the request context object. * project (Project): The current project. Available only when the project is provided in the request context object. * sprint (Sprint): The current sprint. Available only when the sprint is provided in the request context object. * board (Board): The current board. Available only when the board is provided in the request context object. * serviceDesk (ServiceDesk): The current service desk. Available only when the service desk is provided in the request context object. * customerRequest (CustomerRequest): The current customer request. Available only when the customer request is provided in the request context object. Also, custom context variables can be passed in the request with their types. Those variables can be accessed by key in the Jira expression. These variable types are available for use in a custom context: * user: A user specified as an Atlassian account ID. * issue: An issue specified by ID or key. All the fields of the issue object are available in the Jira expression. * json: A JSON object with custom content. * list: A JSON list of user, issue, or json variable types. This operation can be accessed anonymously. Permissions required: None. However, an expression may return different results for different users depending on their permissions. For example, different users may see different comments on the same issue. Permission to access Jira Software is required to access Jira Software context variables (board and sprint) or fields (for example, issue.sprint).

    tags

    Jira expressions

    name

    EvaluateJiraExpression

    summary

    Evaluate Jira expression

    request

    POST:/rest/api/2/expression/eval

    secure

    Parameters

    Returns Promise<JiraExpressionResult>

expandAttachmentForHumans

  • description

    Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported. Use this operation to retrieve data that is presented to the user, as this operation returns the metadata for the attachment itself, such as the attachment's ID and name. Otherwise, use Get contents metadata for an expanded attachment, which only returns the metadata for the attachment's contents. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    ExpandAttachmentForHumans

    summary

    Get all metadata for an expanded attachment

    request

    GET:/rest/api/2/attachment/{id}/expand/human

    secure

    Parameters

    Returns Promise<AttachmentArchiveMetadataReadable>

expandAttachmentForMachines

  • description

    Returns the metadata for the contents of an attachment, if it is an archive. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned. Currently, only the ZIP archive format is supported. Use this operation if you are processing the data without presenting it to the user, as this operation only returns the metadata for the contents of the attachment. Otherwise, to retrieve data to present to the user, use Get all metadata for an expanded attachment which also returns the metadata for the attachment itself, such as the attachment's ID and name. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    ExpandAttachmentForMachines

    summary

    Get contents metadata for an expanded attachment

    request

    GET:/rest/api/2/attachment/{id}/expand/raw

    secure

    Parameters

    Returns Promise<AttachmentArchiveImpl>

findAssignableUsers

  • findAssignableUsers(query?: { accountId?: string; actionDescriptorId?: number; issueKey?: string; maxResults?: number; project?: string; query?: string; recommend?: boolean; sessionId?: string; startAt?: number; username?: string }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of users that can be assigned to an issue. Use this operation to find the list of users who can be assigned to: * a new issue, by providing the projectKeyOrId. * an updated issue, by providing the issueKey. * to an issue during a transition (workflow action), by providing the issueKey and the transition id in actionDescriptorId. You can obtain the IDs of an issue's valid transitions using the transitions option in the expand parameter of Get issue. In all these cases, you can pass an account ID to determine if a user can be assigned to an issue. The user is returned in the response if they can be assigned to the issue or issue transition. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that can be assigned the issue. This means the operation usually returns fewer users than specified in maxResults. To get all the users who can be assigned the issue, use Get all users and filter the records in your code. Permissions required: Permission to access Jira.

    tags

    User search

    name

    FindAssignableUsers

    summary

    Find users assignable to issues

    request

    GET:/rest/api/2/user/assignable/search

    secure

    Parameters

    • Optional query: { accountId?: string; actionDescriptorId?: number; issueKey?: string; maxResults?: number; project?: string; query?: string; recommend?: boolean; sessionId?: string; startAt?: number; username?: string }
      • Optional accountId?: string
      • Optional actionDescriptorId?: number
      • Optional issueKey?: string
      • Optional maxResults?: number
      • Optional project?: string
      • Optional query?: string
      • Optional recommend?: boolean
      • Optional sessionId?: string
      • Optional startAt?: number
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User[]>

findBulkAssignableUsers

  • findBulkAssignableUsers(query: { accountId?: string; maxResults?: number; projectKeys: string; query?: string; startAt?: number; username?: string }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of users who can be assigned issues in one or more projects. The list may be restricted to users whose attributes match a string. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that can be assigned issues in the projects. This means the operation usually returns fewer users than specified in maxResults. To get all the users who can be assigned issues in the projects, use Get all users and filter the records in your code. This operation can be accessed anonymously. Permissions required: None.

    tags

    User search

    name

    FindBulkAssignableUsers

    summary

    Find users assignable to projects

    request

    GET:/rest/api/2/user/assignable/multiProjectSearch

    secure

    Parameters

    • query: { accountId?: string; maxResults?: number; projectKeys: string; query?: string; startAt?: number; username?: string }
      • Optional accountId?: string
      • Optional maxResults?: number
      • projectKeys: string
      • Optional query?: string
      • Optional startAt?: number
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User[]>

findGroups

  • findGroups(query?: { accountId?: string; exclude?: string[]; maxResults?: number; query?: string; userName?: string }, params?: RequestParams): Promise<FoundGroups>
  • description

    Returns a list of groups whose names contain a query string. A list of group names can be provided to exclude groups from the results. The primary use case for this resource is to populate a group picker suggestions list. To this end, the returned object includes the html field where the matched query term is highlighted in the group name with the HTML strong tag. Also, the groups list is wrapped in a response object that contains a header for use in the picker, specifically Showing X of Y matching groups. The list returns with the groups sorted. If no groups match the list criteria, an empty list is returned. This operation can be accessed anonymously. Permissions required: Browse projects project permission. Anonymous calls and calls by users without the required permission return an empty list.

    tags

    Groups

    name

    FindGroups

    summary

    Find groups

    request

    GET:/rest/api/2/groups/picker

    secure

    Parameters

    • Optional query: { accountId?: string; exclude?: string[]; maxResults?: number; query?: string; userName?: string }
      • Optional accountId?: string
      • Optional exclude?: string[]
      • Optional maxResults?: number
      • Optional query?: string
      • Optional userName?: string
    • params: RequestParams = {}

    Returns Promise<FoundGroups>

findUserKeysByQuery

  • description

    Finds users with a structured query and returns a paginated list of user keys. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that match the structured query. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the structured query, use Get all users and filter the records in your code. Permissions required: Browse users and groups global permission. The query statements are: * is assignee of PROJ Returns the users that are assignees of at least one issue in project PROJ. * is assignee of (PROJ-1, PROJ-2) Returns users that are assignees on the issues PROJ-1 or PROJ-2. * is reporter of (PROJ-1, PROJ-2) Returns users that are reporters on the issues PROJ-1 or PROJ-2. * is watcher of (PROJ-1, PROJ-2) Returns users that are watchers on the issues PROJ-1 or PROJ-2. * is voter of (PROJ-1, PROJ-2) Returns users that are voters on the issues PROJ-1 or PROJ-2. * is commenter of (PROJ-1, PROJ-2) Returns users that have posted a comment on the issues PROJ-1 or PROJ-2. * is transitioner of (PROJ-1, PROJ-2) Returns users that have performed a transition on issues PROJ-1 or PROJ-2. * [propertyKey].entity.property.path is "property value" Returns users with the entity property value. The list of issues can be extended as needed, as in (PROJ-1, PROJ-2, ... PROJ-n). Statements can be combined using the AND and OR operators to form more complex queries. For example: is assignee of PROJ AND [propertyKey].entity.property.path is "property value"

    tags

    User search

    name

    FindUserKeysByQuery

    summary

    Find user keys by query

    request

    GET:/rest/api/2/user/search/query/key

    secure

    Parameters

    • query: { maxResults?: number; query: string; startAt?: number }
      • Optional maxResults?: number
      • query: string
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanUserKey>

findUsers

  • findUsers(query?: { accountId?: string; maxResults?: number; property?: string; query?: string; startAt?: number; username?: string }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of users that match the search string and property. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that match the search string and property. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the search string and property, use Get all users and filter the records in your code. This operation can be accessed anonymously. Permissions required: Browse users and groups global permission. Anonymous calls or calls by users without the required permission return empty search results.

    tags

    User search

    name

    FindUsers

    summary

    Find users

    request

    GET:/rest/api/2/user/search

    secure

    Parameters

    • Optional query: { accountId?: string; maxResults?: number; property?: string; query?: string; startAt?: number; username?: string }
      • Optional accountId?: string
      • Optional maxResults?: number
      • Optional property?: string
      • Optional query?: string
      • Optional startAt?: number
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User[]>

findUsersAndGroups

  • findUsersAndGroups(query: { avatarSize?: "xsmall" | "xsmall@2x" | "xsmall@3x" | "small" | "small@2x" | "small@3x" | "medium" | "medium@2x" | "medium@3x" | "large" | "large@2x" | "large@3x" | "xlarge" | "xlarge@2x" | "xlarge@3x" | "xxlarge" | "xxlarge@2x" | "xxlarge@3x" | "xxxlarge" | "xxxlarge@2x" | "xxxlarge@3x"; caseInsensitive?: boolean; excludeConnectAddons?: boolean; fieldId?: string; issueTypeId?: string[]; maxResults?: number; projectId?: string[]; query: string; showAvatar?: boolean }, params?: RequestParams): Promise<FoundUsersAndGroups>
  • description

    Returns a list of users and groups matching a string. The string is used: * for users, to find a case-insensitive match with display name and e-mail address. Note that if a user has hidden their email address in their user profile, partial matches of the email address will not find the user. An exact match is required. * for groups, to find a case-sensitive match with group name. For example, if the string tin is used, records with the display name Tina, email address sarah@tinplatetraining.com, and the group accounting would be returned. Optionally, the search can be refined to: * the projects and issue types associated with a custom field, such as a user picker. The search can then be further refined to return only users and groups that have permission to view specific: * projects. * issue types. If multiple projects or issue types are specified, they must be a subset of those enabled for the custom field or no results are returned. For example, if a field is enabled for projects A, B, and C then the search could be limited to projects B and C. However, if the search is limited to projects B and D, nothing is returned. * not return Connect app users and groups. * return groups that have a case-insensitive match with the query. The primary use case for this resource is to populate a picker field suggestion list with users or groups. To this end, the returned object includes an html field for each list. This field highlights the matched query term in the item name with the HTML strong tag. Also, each list is wrapped in a response object that contains a header for use in a picker, specifically Showing X of Y matching groups. This operation can be accessed anonymously. Permissions required: Browse users and groups global permission.

    tags

    Group and user picker

    name

    FindUsersAndGroups

    summary

    Find users and groups

    request

    GET:/rest/api/2/groupuserpicker

    secure

    Parameters

    • query: { avatarSize?: "xsmall" | "xsmall@2x" | "xsmall@3x" | "small" | "small@2x" | "small@3x" | "medium" | "medium@2x" | "medium@3x" | "large" | "large@2x" | "large@3x" | "xlarge" | "xlarge@2x" | "xlarge@3x" | "xxlarge" | "xxlarge@2x" | "xxlarge@3x" | "xxxlarge" | "xxxlarge@2x" | "xxxlarge@3x"; caseInsensitive?: boolean; excludeConnectAddons?: boolean; fieldId?: string; issueTypeId?: string[]; maxResults?: number; projectId?: string[]; query: string; showAvatar?: boolean }
      • Optional avatarSize?: "xsmall" | "xsmall@2x" | "xsmall@3x" | "small" | "small@2x" | "small@3x" | "medium" | "medium@2x" | "medium@3x" | "large" | "large@2x" | "large@3x" | "xlarge" | "xlarge@2x" | "xlarge@3x" | "xxlarge" | "xxlarge@2x" | "xxlarge@3x" | "xxxlarge" | "xxxlarge@2x" | "xxxlarge@3x"
      • Optional caseInsensitive?: boolean
      • Optional excludeConnectAddons?: boolean
      • Optional fieldId?: string
      • Optional issueTypeId?: string[]
      • Optional maxResults?: number
      • Optional projectId?: string[]
      • query: string
      • Optional showAvatar?: boolean
    • params: RequestParams = {}

    Returns Promise<FoundUsersAndGroups>

findUsersByQuery

  • findUsersByQuery(query: { maxResults?: number; query: string; startAt?: number }, params?: RequestParams): Promise<PageBeanUser>
  • description

    Finds users with a structured query and returns a paginated list of user details. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that match the structured query. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the structured query, use Get all users and filter the records in your code. Permissions required: Browse users and groups global permission. The query statements are: * is assignee of PROJ Returns the users that are assignees of at least one issue in project PROJ. * is assignee of (PROJ-1, PROJ-2) Returns users that are assignees on the issues PROJ-1 or PROJ-2. * is reporter of (PROJ-1, PROJ-2) Returns users that are reporters on the issues PROJ-1 or PROJ-2. * is watcher of (PROJ-1, PROJ-2) Returns users that are watchers on the issues PROJ-1 or PROJ-2. * is voter of (PROJ-1, PROJ-2) Returns users that are voters on the issues PROJ-1 or PROJ-2. * is commenter of (PROJ-1, PROJ-2) Returns users that have posted a comment on the issues PROJ-1 or PROJ-2. * is transitioner of (PROJ-1, PROJ-2) Returns users that have performed a transition on issues PROJ-1 or PROJ-2. * [propertyKey].entity.property.path is "property value" Returns users with the entity property value. The list of issues can be extended as needed, as in (PROJ-1, PROJ-2, ... PROJ-n). Statements can be combined using the AND and OR operators to form more complex queries. For example: is assignee of PROJ AND [propertyKey].entity.property.path is "property value"

    tags

    User search

    name

    FindUsersByQuery

    summary

    Find users by query

    request

    GET:/rest/api/2/user/search/query

    secure

    Parameters

    • query: { maxResults?: number; query: string; startAt?: number }
      • Optional maxResults?: number
      • query: string
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanUser>

findUsersForPicker

  • findUsersForPicker(query: { avatarSize?: string; exclude?: string[]; excludeAccountIds?: string[]; excludeConnectUsers?: boolean; maxResults?: number; query: string; showAvatar?: boolean }, params?: RequestParams): Promise<FoundUsers>
  • description

    Returns a list of users whose attributes match the query term. The returned object includes the html field where the matched query term is highlighted with the HTML strong tag. A list of account IDs can be provided to exclude users from the results. This operation takes the users in the range defined by maxResults, up to the thousandth user, and then returns only the users from that range that match the query term. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the query term, use Get all users and filter the records in your code. This operation can be accessed anonymously. Permissions required: Browse users and groups global permission. Anonymous calls and calls by users without the required permission return search results for an exact name match only.

    tags

    User search

    name

    FindUsersForPicker

    summary

    Find users for picker

    request

    GET:/rest/api/2/user/picker

    secure

    Parameters

    • query: { avatarSize?: string; exclude?: string[]; excludeAccountIds?: string[]; excludeConnectUsers?: boolean; maxResults?: number; query: string; showAvatar?: boolean }
      • Optional avatarSize?: string
      • Optional exclude?: string[]
      • Optional excludeAccountIds?: string[]
      • Optional excludeConnectUsers?: boolean
      • Optional maxResults?: number
      • query: string
      • Optional showAvatar?: boolean
    • params: RequestParams = {}

    Returns Promise<FoundUsers>

findUsersWithAllPermissions

  • findUsersWithAllPermissions(query: { accountId?: string; issueKey?: string; maxResults?: number; permissions: string; projectKey?: string; query?: string; startAt?: number; username?: string }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of users who fulfill these criteria: * their user attributes match a search string. * they have a set of permissions for a project or issue. If no search string is provided, a list of all users with the permissions is returned. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that match the search string and have permission for the project or issue. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the search string and have permission for the project or issue, use Get all users and filter the records in your code. This operation can be accessed anonymously. Permissions required: * Administer Jira global permission, to get users for any project. * Administer Projects project permission for a project, to get users for that project.

    tags

    User search

    name

    FindUsersWithAllPermissions

    summary

    Find users with permissions

    request

    GET:/rest/api/2/user/permission/search

    secure

    Parameters

    • query: { accountId?: string; issueKey?: string; maxResults?: number; permissions: string; projectKey?: string; query?: string; startAt?: number; username?: string }
      • Optional accountId?: string
      • Optional issueKey?: string
      • Optional maxResults?: number
      • permissions: string
      • Optional projectKey?: string
      • Optional query?: string
      • Optional startAt?: number
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User[]>

findUsersWithBrowsePermission

  • findUsersWithBrowsePermission(query?: { accountId?: string; issueKey?: string; maxResults?: number; projectKey?: string; query?: string; startAt?: number; username?: string }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of users who fulfill these criteria: * their user attributes match a search string. * they have permission to browse issues. Use this resource to find users who can browse: * an issue, by providing the issueKey. * any issue in a project, by providing the projectKey. This operation takes the users in the range defined by startAt and maxResults, up to the thousandth user, and then returns only the users from that range that match the search string and have permission to browse issues. This means the operation usually returns fewer users than specified in maxResults. To get all the users who match the search string and have permission to browse issues, use Get all users and filter the records in your code. This operation can be accessed anonymously. Permissions required: Browse users and groups global permission. Anonymous calls and calls by users without the required permission return empty search results.

    tags

    User search

    name

    FindUsersWithBrowsePermission

    summary

    Find users with browse permission

    request

    GET:/rest/api/2/user/viewissue/search

    secure

    Parameters

    • Optional query: { accountId?: string; issueKey?: string; maxResults?: number; projectKey?: string; query?: string; startAt?: number; username?: string }
      • Optional accountId?: string
      • Optional issueKey?: string
      • Optional maxResults?: number
      • Optional projectKey?: string
      • Optional query?: string
      • Optional startAt?: number
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User[]>

fullyUpdateProjectRole

getAccessibleProjectTypeByKey

  • getAccessibleProjectTypeByKey(projectTypeKey: "software" | "service_desk" | "business" | "product_discovery", params?: RequestParams): Promise<ProjectType>
  • description

    Returns a project type if it is accessible to the user. Permissions required: Permission to access Jira.

    tags

    Project types

    name

    GetAccessibleProjectTypeByKey

    summary

    Get accessible project type by key

    request

    GET:/rest/api/2/project/type/{projectTypeKey}/accessible

    secure

    Parameters

    • projectTypeKey: "software" | "service_desk" | "business" | "product_discovery"
    • params: RequestParams = {}

    Returns Promise<ProjectType>

getAdvancedSettings

  • description

    Returns the application properties that are accessible on the Advanced Settings page. To navigate to the Advanced Settings page in Jira, choose the Jira icon > Jira settings > System, General Configuration and then click Advanced Settings (in the upper right). Permissions required: Administer Jira global permission.

    tags

    Jira settings

    name

    GetAdvancedSettings

    summary

    Get advanced settings

    request

    GET:/rest/api/2/application-properties/advanced-settings

    secure

    Parameters

    Returns Promise<ApplicationProperty[]>

getAllAccessibleProjectTypes

getAllApplicationRoles

getAllDashboards

  • getAllDashboards(query?: { filter?: "my" | "favourite"; maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageOfDashboards>
  • description

    Returns a list of dashboards owned by or shared with the user. The list may be filtered to include only favorite or owned dashboards. This operation can be accessed anonymously. Permissions required: None.

    tags

    Dashboards

    name

    GetAllDashboards

    summary

    Get all dashboards

    request

    GET:/rest/api/2/dashboard

    secure

    Parameters

    • Optional query: { filter?: "my" | "favourite"; maxResults?: number; startAt?: number }
      • Optional filter?: "my" | "favourite"
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageOfDashboards>

getAllFieldConfigurationSchemes

  • description

    Returns a paginated list of field configuration schemes. Only field configuration schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    GetAllFieldConfigurationSchemes

    summary

    Get all field configuration schemes

    request

    GET:/rest/api/2/fieldconfigurationscheme

    secure

    Parameters

    • Optional query: { id?: number[]; maxResults?: number; startAt?: number }
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFieldConfigurationScheme>

getAllFieldConfigurations

  • description

    Returns a paginated list of field configurations. The list can be for all field configurations or a subset determined by any combination of these criteria: * a list of field configuration item IDs. * whether the field configuration is a default. * whether the field configuration name or description contains a query string. Only field configurations used in company-managed (classic) projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    GetAllFieldConfigurations

    summary

    Get all field configurations

    request

    GET:/rest/api/2/fieldconfiguration

    secure

    Parameters

    • Optional query: { id?: number[]; isDefault?: boolean; maxResults?: number; query?: string; startAt?: number }
      • Optional id?: number[]
      • Optional isDefault?: boolean
      • Optional maxResults?: number
      • Optional query?: string
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFieldConfigurationDetails>

getAllIssueFieldOptions

  • description

    Returns a paginated list of all the options of a select list issue field. A select list issue field is a type of issue field that enables a user to select a value from a list of options. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    GetAllIssueFieldOptions

    summary

    Get all issue field options

    request

    GET:/rest/api/2/field/{fieldKey}/option

    secure

    Parameters

    • fieldKey: string
    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueFieldOption>

getAllIssueTypeSchemes

  • description

    Returns a paginated list of issue type schemes. Only issue type schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    GetAllIssueTypeSchemes

    summary

    Get all issue type schemes

    request

    GET:/rest/api/2/issuetypescheme

    secure

    Parameters

    • Optional query: { id?: number[]; maxResults?: number; startAt?: number }
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeScheme>

getAllLabels

  • description

    Returns a paginated list of labels.

    tags

    Labels

    name

    GetAllLabels

    summary

    Get all labels

    request

    GET:/rest/api/2/label

    secure

    Parameters

    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanString>

getAllPermissionSchemes

  • description

    Returns all permission schemes. ### About permission schemes and grants ### A permission scheme is a collection of permission grants. A permission grant consists of a holder and a permission. #### Holder object #### The holder object contains information about the user or group being granted the permission. For example, the Administer projects permission is granted to a group named Teams in space administrators. In this case, the type is "type": "group", and the parameter is the group name, "parameter": "Teams in space administrators". The holder object is defined by the following properties: * type Identifies the user or group (see the list of types below). * parameter The value of this property depends on the type. For example, if the type is a group, then you need to specify the group name. The following types are available. The expected values for the parameter are given in parenthesis (some types may not have a parameter): * anyone Grant for anonymous users. * applicationRole Grant for users with access to the specified application (application name). See Update product access settings for more information. * assignee Grant for the user currently assigned to an issue. * group Grant for the specified group (group name). * groupCustomField Grant for a user in the group selected in the specified custom field (custom field ID). * projectLead Grant for a project lead. * projectRole Grant for the specified project role (project role ID). * reporter Grant for the user who reported the issue. * sd.customer.portal.only Jira Service Desk only. Grants customers permission to access the customer portal but not Jira. See Customizing Jira Service Desk permissions for more information. * user Grant for the specified user (user ID - historically this was the userkey but that is deprecated and the account ID should be used). * userCustomField Grant for a user selected in the specified custom field (custom field ID). #### Built-in permissions #### The built-in Jira permissions are listed below. Apps can also define custom permissions. See the project permission and global permission module documentation for more information. Project permissions * ADMINISTER_PROJECTS * BROWSE_PROJECTS * MANAGE_SPRINTS_PERMISSION (Jira Software only) * SERVICEDESK_AGENT (Jira Service Desk only) * VIEW_DEV_TOOLS (Jira Software only) * VIEW_READONLY_WORKFLOW Issue permissions * ASSIGNABLE_USER * ASSIGN_ISSUES * CLOSE_ISSUES * CREATE_ISSUES * DELETE_ISSUES * EDIT_ISSUES * LINK_ISSUES * MODIFY_REPORTER * MOVE_ISSUES * RESOLVE_ISSUES * SCHEDULE_ISSUES * SET_ISSUE_SECURITY * TRANSITION_ISSUES Voters and watchers permissions * MANAGE_WATCHERS * VIEW_VOTERS_AND_WATCHERS Comments permissions * ADD_COMMENTS * DELETE_ALL_COMMENTS * DELETE_OWN_COMMENTS * EDIT_ALL_COMMENTS * EDIT_OWN_COMMENTS Attachments permissions * CREATE_ATTACHMENTS * DELETE_ALL_ATTACHMENTS * DELETE_OWN_ATTACHMENTS Time tracking permissions * DELETE_ALL_WORKLOGS * DELETE_OWN_WORKLOGS * EDIT_ALL_WORKLOGS * EDIT_OWN_WORKLOGS * WORK_ON_ISSUES Permissions required: Permission to access Jira.

    tags

    Permission schemes

    name

    GetAllPermissionSchemes

    summary

    Get all permission schemes

    request

    GET:/rest/api/2/permissionscheme

    secure

    Parameters

    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<PermissionSchemes>

getAllPermissions

getAllProjectAvatars

  • description

    Returns all project avatars, grouped by system and custom avatars. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project.

    tags

    Project avatars

    name

    GetAllProjectAvatars

    summary

    Get all project avatars

    request

    GET:/rest/api/2/project/{projectIdOrKey}/avatars

    secure

    Parameters

    Returns Promise<ProjectAvatars>

getAllProjectCategories

getAllProjectRoles

  • description

    Gets a list of all project roles, complete with project role details and default actors. ### About project roles ### Project roles are a flexible way to to associate users and groups with projects. In Jira Cloud, the list of project roles is shared globally with all projects, but each project can have a different set of actors associated with it (unlike groups, which have the same membership throughout all Jira applications). Project roles are used in permission schemes, email notification schemes, issue security levels, comment visibility, and workflow conditions. #### Members and actors #### In the Jira REST API, a member of a project role is called an actor. An actor is a group or user associated with a project role. Actors may be set as default members of the project role or set at the project level: * Default actors: Users and groups that are assigned to the project role for all newly created projects. The default actors can be removed at the project level later if desired. * Actors: Users and groups that are associated with a project role for a project, which may differ from the default actors. This enables you to assign a user to different roles in different projects. Permissions required: Administer Jira global permission.

    tags

    Project roles

    name

    GetAllProjectRoles

    summary

    Get all project roles

    request

    GET:/rest/api/2/role

    secure

    Parameters

    Returns Promise<ProjectRole[]>

getAllProjectTypes

getAllProjects

  • getAllProjects(query?: { expand?: string; properties?: string[]; recent?: number }, params?: RequestParams): Promise<Project[]>
  • description

    Returns all projects visible to the user. Deprecated, use Get projects paginated that supports search and pagination. This operation can be accessed anonymously. Permissions required: Projects are returned only where the user has Browse Projects or Administer projects project permission for the project.

    tags

    Projects

    name

    GetAllProjects

    summary

    Get all projects

    request

    GET:/rest/api/2/project

    deprecated
    secure

    Parameters

    • Optional query: { expand?: string; properties?: string[]; recent?: number }
      • Optional expand?: string
      • Optional properties?: string[]
      • Optional recent?: number
    • params: RequestParams = {}

    Returns Promise<Project[]>

getAllScreenTabFields

  • getAllScreenTabFields(screenId: number, tabId: number, query?: { projectKey?: string }, params?: RequestParams): Promise<ScreenableField[]>
  • description

    Returns all fields for a screen tab. Permissions required: * Administer Jira global permission. * Administer projects project permission when the project key is specified, providing that the screen is associated with the project through a Screen Scheme and Issue Type Screen Scheme.

    tags

    Screen tab fields

    name

    GetAllScreenTabFields

    summary

    Get all screen tab fields

    request

    GET:/rest/api/2/screens/{screenId}/tabs/{tabId}/fields

    secure

    Parameters

    • screenId: number
    • tabId: number
    • Optional query: { projectKey?: string }
      • Optional projectKey?: string
    • params: RequestParams = {}

    Returns Promise<ScreenableField[]>

getAllScreenTabs

  • description

    Returns the list of tabs for a screen. Permissions required: * Administer Jira global permission. * Administer projects project permission when the project key is specified, providing that the screen is associated with the project through a Screen Scheme and Issue Type Screen Scheme.

    tags

    Screen tabs

    name

    GetAllScreenTabs

    summary

    Get all screen tabs

    request

    GET:/rest/api/2/screens/{screenId}/tabs

    secure

    Parameters

    • screenId: number
    • Optional query: { projectKey?: string }
      • Optional projectKey?: string
    • params: RequestParams = {}

    Returns Promise<ScreenableTab[]>

getAllStatuses

  • description

    Returns the valid statuses for a project. The statuses are grouped by issue type, as each project has a set of valid issue types and each issue type has a set of valid statuses. This operation can be accessed anonymously. Permissions required: Browse Projects project permission for the project.

    tags

    Projects

    name

    GetAllStatuses

    summary

    Get all statuses for project

    request

    GET:/rest/api/2/project/{projectIdOrKey}/statuses

    secure

    Parameters

    Returns Promise<IssueTypeWithStatus[]>

getAllSystemAvatars

  • description

    Returns a list of system avatar details by owner type, where the owner types are issue type, project, or user. This operation can be accessed anonymously. Permissions required: None.

    tags

    Avatars

    name

    GetAllSystemAvatars

    summary

    Get system avatars by type

    request

    GET:/rest/api/2/avatar/{type}/system

    secure

    Parameters

    • type: "issuetype" | "project" | "user"
    • params: RequestParams = {}

    Returns Promise<SystemAvatars>

getAllUsers

  • getAllUsers(query?: { maxResults?: number; startAt?: number }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of all (active and inactive) users. Permissions required: Browse users and groups global permission.

    tags

    Users

    name

    GetAllUsers

    summary

    Get all users

    request

    GET:/rest/api/2/users/search

    secure

    Parameters

    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<User[]>

getAllUsersDefault

  • getAllUsersDefault(query?: { maxResults?: number; startAt?: number }, params?: RequestParams): Promise<User[]>
  • description

    Returns a list of all (active and inactive) users. Permissions required: Browse users and groups global permission.

    tags

    Users

    name

    GetAllUsersDefault

    summary

    Get all users default

    request

    GET:/rest/api/2/users

    secure

    Parameters

    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<User[]>

getAllWorkflowSchemes

getAllWorkflows

  • description

    Returns all workflows in Jira or a workflow. Deprecated, use Get workflows paginated. If the workflowName parameter is specified, the workflow is returned as an object (not in an array). Otherwise, an array of workflow objects is returned. Permissions required: Administer Jira global permission.

    tags

    Workflows

    name

    GetAllWorkflows

    summary

    Get all workflows

    request

    GET:/rest/api/2/workflow

    deprecated
    secure

    Parameters

    • Optional query: { workflowName?: string }
      • Optional workflowName?: string
    • params: RequestParams = {}

    Returns Promise<DeprecatedWorkflow[]>

getAlternativeIssueTypes

  • description

    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.

    tags

    Issue types

    name

    GetAlternativeIssueTypes

    summary

    Get alternative issue types

    request

    GET:/rest/api/2/issuetype/{id}/alternatives

    secure

    Parameters

    Returns Promise<IssueTypeDetails[]>

getApplicationProperty

  • description

    Returns all application properties or an application property. If you specify a value for the key parameter, then an application property is returned as an object (not in an array). Otherwise, an array of all editable application properties is returned. See Set application property for descriptions of editable properties. Permissions required: Administer Jira global permission.

    tags

    Jira settings

    name

    GetApplicationProperty

    summary

    Get application property

    request

    GET:/rest/api/2/application-properties

    secure

    Parameters

    • Optional query: { key?: string; keyFilter?: string; permissionLevel?: string }
      • Optional key?: string
      • Optional keyFilter?: string
      • Optional permissionLevel?: string
    • params: RequestParams = {}

    Returns Promise<ApplicationProperty[]>

getApplicationRole

getAssignedPermissionScheme

getAttachment

  • description

    Returns the metadata for an attachment. Note that the attachment itself is not returned. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    GetAttachment

    summary

    Get attachment metadata

    request

    GET:/rest/api/2/attachment/{id}

    secure

    Parameters

    Returns Promise<AttachmentMetadata>

getAttachmentContent

  • getAttachmentContent(id: string, query?: { redirect?: boolean }, params?: RequestParams): Promise<object>
  • description

    Returns the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details. To return a thumbnail of the attachment, use Download attachment thumbnail. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    GetAttachmentContent

    summary

    Get attachment content

    request

    GET:/rest/api/2/attachment/content/{id}

    secure

    Parameters

    • id: string
    • Optional query: { redirect?: boolean }
      • Optional redirect?: boolean
    • params: RequestParams = {}

    Returns Promise<object>

getAttachmentMeta

  • description

    Returns the attachment settings, that is, whether attachments are enabled and the maximum attachment size allowed. Note that there are also project permissions that restrict whether users can create and delete attachments. This operation can be accessed anonymously. Permissions required: None.

    tags

    Issue attachments

    name

    GetAttachmentMeta

    summary

    Get Jira attachment settings

    request

    GET:/rest/api/2/attachment/meta

    secure

    Parameters

    Returns Promise<AttachmentSettings>

getAttachmentThumbnail

  • getAttachmentThumbnail(id: string, query?: { fallbackToDefault?: boolean; height?: number; redirect?: boolean; width?: number }, params?: RequestParams): Promise<object>
  • description

    Returns the thumbnail of an attachment. To return the attachment contents, use Download attachment content. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue attachments

    name

    GetAttachmentThumbnail

    summary

    Get attachment thumbnail

    request

    GET:/rest/api/2/attachment/thumbnail/{id}

    secure

    Parameters

    • id: string
    • Optional query: { fallbackToDefault?: boolean; height?: number; redirect?: boolean; width?: number }
      • Optional fallbackToDefault?: boolean
      • Optional height?: number
      • Optional redirect?: boolean
      • Optional width?: number
    • params: RequestParams = {}

    Returns Promise<object>

getAuditRecords

  • getAuditRecords(query?: { filter?: string; from?: string; limit?: number; offset?: number; to?: string }, params?: RequestParams): Promise<AuditRecords>
  • description

    Returns a list of audit records. The list can be filtered to include items: * where each item in filter has at least one match in any of these fields: * summary * category * eventSource * objectItem.name If the object is a user, account ID is available to filter. * objectItem.parentName * objectItem.typeName * changedValues.changedFrom * changedValues.changedTo * remoteAddress For example, if filter contains man ed, an audit record containing summary": "User added to group" and "category": "group management" is returned. * created on or after a date and time. * created or or before a date and time. Permissions required: Administer Jira global permission.

    tags

    Audit records

    name

    GetAuditRecords

    summary

    Get audit records

    request

    GET:/rest/api/2/auditing/record

    secure

    Parameters

    • Optional query: { filter?: string; from?: string; limit?: number; offset?: number; to?: string }
      • Optional filter?: string
      • Optional from?: string
      • Optional limit?: number
      • Optional offset?: number
      • Optional to?: string
    • params: RequestParams = {}

    Returns Promise<AuditRecords>

getAutoComplete

getAutoCompletePost

  • description

    Returns reference data for JQL searches. This is a downloadable version of the documentation provided in Advanced searching - fields reference and Advanced searching - functions reference, along with a list of JQL-reserved words. Use this information to assist with the programmatic creation of JQL queries or the validation of queries built in a custom query builder. This operation can filter the custom fields returned by project. Invalid project IDs in projectIds are ignored. System fields are always returned. It can also return the collapsed field for custom fields. Collapsed fields enable searches to be performed across all fields with the same name and of the same field type. For example, the collapsed field Component - Component[Dropdown] enables dropdown fields Component - cf[10061] and Component - cf[10062] to be searched simultaneously. Permissions required: None.

    tags

    JQL

    name

    GetAutoCompletePost

    summary

    Get field reference data (POST)

    request

    POST:/rest/api/2/jql/autocompletedata

    secure

    Parameters

    Returns Promise<JQLReferenceData>

getAvailableScreenFields

getAvailableTimeTrackingImplementations

  • description

    Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking. However, you can install other time tracking providers via apps from the Atlassian Marketplace. For more information on time tracking providers, see the documentation for the Time Tracking Provider module. Permissions required: Administer Jira global permission.

    tags

    Time tracking

    name

    GetAvailableTimeTrackingImplementations

    summary

    Get all time tracking providers

    request

    GET:/rest/api/2/configuration/timetracking/list

    secure

    Parameters

    Returns Promise<TimeTrackingProvider[]>

getAvatarImageById

  • getAvatarImageById(type: "issuetype" | "project", id: number, query?: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }, params?: RequestParams): Promise<object>
  • description

    Returns a project or issue type avatar image by ID. This operation can be accessed anonymously. Permissions required: * For system avatars, none. * For custom project avatars, Browse projects project permission for the project the avatar belongs to. * For custom issue type avatars, Browse projects project permission for at least one project the issue type is used in.

    tags

    Avatars

    name

    GetAvatarImageById

    summary

    Get avatar image by ID

    request

    GET:/rest/api/2/universal_avatar/view/type/{type}/avatar/{id}

    secure

    Parameters

    • type: "issuetype" | "project"
    • id: number
    • Optional query: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }
      • Optional format?: "png" | "svg"
      • Optional size?: "xsmall" | "small" | "medium" | "large" | "xlarge"
    • params: RequestParams = {}

    Returns Promise<object>

getAvatarImageByOwner

  • getAvatarImageByOwner(type: "issuetype" | "project", entityId: string, query?: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }, params?: RequestParams): Promise<object>
  • description

    Returns the avatar image for a project or issue type. This operation can be accessed anonymously. Permissions required: * For system avatars, none. * For custom project avatars, Browse projects project permission for the project the avatar belongs to. * For custom issue type avatars, Browse projects project permission for at least one project the issue type is used in.

    tags

    Avatars

    name

    GetAvatarImageByOwner

    summary

    Get avatar image by owner

    request

    GET:/rest/api/2/universal_avatar/view/type/{type}/owner/{entityId}

    secure

    Parameters

    • type: "issuetype" | "project"
    • entityId: string
    • Optional query: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }
      • Optional format?: "png" | "svg"
      • Optional size?: "xsmall" | "small" | "medium" | "large" | "xlarge"
    • params: RequestParams = {}

    Returns Promise<object>

getAvatarImageByType

  • getAvatarImageByType(type: "issuetype" | "project", query?: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }, params?: RequestParams): Promise<object>
  • description

    Returns the default project or issue type avatar image. This operation can be accessed anonymously. Permissions required: None.

    tags

    Avatars

    name

    GetAvatarImageByType

    summary

    Get avatar image by type

    request

    GET:/rest/api/2/universal_avatar/view/type/{type}

    secure

    Parameters

    • type: "issuetype" | "project"
    • Optional query: { format?: "png" | "svg"; size?: "xsmall" | "small" | "medium" | "large" | "xlarge" }
      • Optional format?: "png" | "svg"
      • Optional size?: "xsmall" | "small" | "medium" | "large" | "xlarge"
    • params: RequestParams = {}

    Returns Promise<object>

getAvatars

  • getAvatars(type: "issuetype" | "project", entityId: string, params?: RequestParams): Promise<Avatars>
  • description

    Returns the system and custom avatars for a project or issue type. This operation can be accessed anonymously. Permissions required: * for custom project avatars, Browse projects project permission for the project the avatar belongs to. * for custom issue type avatars, Browse projects project permission for at least one project the issue type is used in. * for system avatars, none.

    tags

    Avatars

    name

    GetAvatars

    summary

    Get avatars

    request

    GET:/rest/api/2/universal_avatar/type/{type}/owner/{entityId}

    secure

    Parameters

    • type: "issuetype" | "project"
    • entityId: string
    • params: RequestParams = {}

    Returns Promise<Avatars>

getBulkPermissions

  • description

    Returns: * for a list of global permissions, the global permissions granted to a user. * for a list of project permissions and lists of projects and issues, for each project permission a list of the projects and issues a user can access or manipulate. If no account ID is provided, the operation returns details for the logged in user. Note that: * Invalid project and issue IDs are ignored. * A maximum of 1000 projects and 1000 issues can be checked. * Null values in globalPermissions, projectPermissions, projectPermissions.projects, and projectPermissions.issues are ignored. * Empty strings in projectPermissions.permissions are ignored. This operation can be accessed anonymously. Permissions required: Administer Jira global permission to check the permissions for other users, otherwise none. However, Connect apps can make a call from the app server to the product to obtain permission details for any user, without admin permission. This Connect app ability doesn't apply to calls made using AP.request() in a browser.

    tags

    Permissions

    name

    GetBulkPermissions

    summary

    Get bulk permissions

    request

    POST:/rest/api/2/permissions/check

    secure

    Parameters

    Returns Promise<BulkPermissionGrants>

getChangeLogs

  • description

    Returns a paginated list of all changelogs for an issue sorted by date, starting from the oldest. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    GetChangeLogs

    summary

    Get changelogs

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/changelog

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanChangelog>

getChangeLogsByIds

getColumns

  • description

    Returns the columns configured for a filter. The column configuration is used when the filter's results are viewed in List View with the Columns set to Filter. This operation can be accessed anonymously. Permissions required: None, however, column details are only returned for: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    GetColumns

    summary

    Get columns

    request

    GET:/rest/api/2/filter/{id}/columns

    secure

    Parameters

    Returns Promise<ColumnItem[]>

getComment

  • getComment(issueIdOrKey: string, id: string, query?: { expand?: string }, params?: RequestParams): Promise<Comment>
  • description

    Returns a comment. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project containing the comment. * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, the user belongs to the group or has the role visibility is restricted to.

    tags

    Issue comments

    name

    GetComment

    summary

    Get comment

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/comment/{id}

    secure

    Parameters

    • issueIdOrKey: string
    • id: string
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Comment>

getCommentProperty

  • description

    Returns the value of a comment property. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project. * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue comment properties

    name

    GetCommentProperty

    summary

    Get comment property

    request

    GET:/rest/api/2/comment/{commentId}/properties/{propertyKey}

    secure

    Parameters

    • commentId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getCommentPropertyKeys

  • description

    Returns the keys of all the properties of a comment. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project. * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue comment properties

    name

    GetCommentPropertyKeys

    summary

    Get comment property keys

    request

    GET:/rest/api/2/comment/{commentId}/properties

    secure

    Parameters

    Returns Promise<PropertyKeys>

getComments

  • getComments(issueIdOrKey: string, query?: { expand?: string; maxResults?: number; orderBy?: "created" | "-created" | "+created"; startAt?: number }, params?: RequestParams): Promise<PageOfComments>
  • description

    Returns all comments for an issue. This operation can be accessed anonymously. Permissions required: Comments are included in the response where the user has: * Browse projects project permission for the project containing the comment. * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, belongs to the group or has the role visibility is role visibility is restricted to.

    tags

    Issue comments

    name

    GetComments

    summary

    Get comments

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/comment

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { expand?: string; maxResults?: number; orderBy?: "created" | "-created" | "+created"; startAt?: number }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional orderBy?: "created" | "-created" | "+created"
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageOfComments>

getCommentsByIds

  • description

    Returns a paginated list of comments specified by a list of comment IDs. This operation can be accessed anonymously. Permissions required: Comments are returned where the user: * has Browse projects project permission for the project containing the comment. * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue comments

    name

    GetCommentsByIds

    summary

    Get comments by IDs

    request

    POST:/rest/api/2/comment/list

    secure

    Parameters

    Returns Promise<PageBeanComment>

getComponent

getComponentRelatedIssues

  • description

    Returns the counts of issues assigned to the component. This operation can be accessed anonymously. Permissions required: None.

    tags

    Project components

    name

    GetComponentRelatedIssues

    summary

    Get component issues count

    request

    GET:/rest/api/2/component/{id}/relatedIssueCounts

    secure

    Parameters

    Returns Promise<ComponentIssuesCount>

getConfiguration

  • description

    Returns the global settings in Jira. These settings determine whether optional features (for example, subtasks, time tracking, and others) are enabled. If time tracking is enabled, this operation also returns the time tracking configuration. This operation can be accessed anonymously. Permissions required: None.

    tags

    Jira settings

    name

    GetConfiguration

    summary

    Get global settings

    request

    GET:/rest/api/2/configuration

    secure

    Parameters

    Returns Promise<Configuration>

getContextsForField

  • getContextsForField(fieldId: string, query?: { contextId?: number[]; isAnyIssueType?: boolean; isGlobalContext?: boolean; maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanCustomFieldContext>
  • description

    Returns a paginated list of contexts for a custom field. Contexts can be returned as follows: * With no other parameters set, all contexts. * By defining id only, all contexts from the list of IDs. * By defining isAnyIssueType, limit the list of contexts returned to either those that apply to all issue types (true) or those that apply to only a subset of issue types (false) * By defining isGlobalContext, limit the list of contexts return to either those that apply to all projects (global contexts) (true) or those that apply to only a subset of projects (false). Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    GetContextsForField

    summary

    Get custom field contexts

    request

    GET:/rest/api/2/field/{fieldId}/context

    secure

    Parameters

    • fieldId: string
    • Optional query: { contextId?: number[]; isAnyIssueType?: boolean; isGlobalContext?: boolean; maxResults?: number; startAt?: number }
      • Optional contextId?: number[]
      • Optional isAnyIssueType?: boolean
      • Optional isGlobalContext?: boolean
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanCustomFieldContext>

getContextsForFieldDeprecated

  • getContextsForFieldDeprecated(fieldId: string, query?: { maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanContext>

getCreateIssueMeta

  • getCreateIssueMeta(query?: { expand?: string; issuetypeIds?: string[]; issuetypeNames?: string[]; projectIds?: string[]; projectKeys?: string[] }, params?: RequestParams): Promise<IssueCreateMetadata>
  • description

    Returns details of projects, issue types within projects, and, when requested, the create screen fields for each issue type for the user. Use the information to populate the requests in Create issue and Create issues. The request can be restricted to specific projects or issue types using the query parameters. The response will contain information for the valid projects, issue types, or project and issue type combinations requested. Note that invalid project, issue type, or project and issue type combinations do not generate errors. This operation can be accessed anonymously. Permissions required: Create issues project permission in the requested projects.

    tags

    Issues

    name

    GetCreateIssueMeta

    summary

    Get create issue metadata

    request

    GET:/rest/api/2/issue/createmeta

    secure

    Parameters

    • Optional query: { expand?: string; issuetypeIds?: string[]; issuetypeNames?: string[]; projectIds?: string[]; projectKeys?: string[] }
      • Optional expand?: string
      • Optional issuetypeIds?: string[]
      • Optional issuetypeNames?: string[]
      • Optional projectIds?: string[]
      • Optional projectKeys?: string[]
    • params: RequestParams = {}

    Returns Promise<IssueCreateMetadata>

getCurrentUser

  • description

    Returns details for the current user. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    GetCurrentUser

    summary

    Get current user

    request

    GET:/rest/api/2/myself

    secure

    Parameters

    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<User>

getCustomFieldConfiguration

  • getCustomFieldConfiguration(fieldIdOrKey: string, query?: { contextId?: number[]; issueId?: number; issueTypeId?: string; maxResults?: number; projectKeyOrId?: string; startAt?: number }, params?: RequestParams): Promise<PageBeanContextualConfiguration>
  • description

    Returns a paginated list of configurations for a custom field created by a Forge app. The result can be filtered by one of these criteria: * contextId. * issueId. * projectKeyOrId and issueTypeId. Otherwise, all configurations are returned. Permissions required: Administer Jira global permission. Jira permissions are not required for the Forge app that created the custom field.

    tags

    Issue custom field configuration (apps)

    name

    GetCustomFieldConfiguration

    summary

    Get custom field configurations

    request

    GET:/rest/api/2/app/field/{fieldIdOrKey}/context/configuration

    secure

    Parameters

    • fieldIdOrKey: string
    • Optional query: { contextId?: number[]; issueId?: number; issueTypeId?: string; maxResults?: number; projectKeyOrId?: string; startAt?: number }
      • Optional contextId?: number[]
      • Optional issueId?: number
      • Optional issueTypeId?: string
      • Optional maxResults?: number
      • Optional projectKeyOrId?: string
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanContextualConfiguration>

getCustomFieldContextsForProjectsAndIssueTypes

  • description

    Returns a paginated list of project and issue type mappings and, for each mapping, the ID of a custom field context that applies to the project and issue type. If there is no custom field context assigned to the project then, if present, the custom field context that applies to all projects is returned if it also applies to the issue type or all issue types. If a custom field context is not found, the returned custom field context ID is null. Duplicate project and issue type mappings cannot be provided in the request. The order of the returned values is the same as provided in the request. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    GetCustomFieldContextsForProjectsAndIssueTypes

    summary

    Get custom field contexts for projects and issue types

    request

    POST:/rest/api/2/field/{fieldId}/context/mapping

    secure

    Parameters

    • fieldId: string
    • data: ProjectIssueTypeMappings
    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanContextForProjectAndIssueType>

getCustomFieldOption

  • description

    Returns a custom field option. For example, an option in a select list. Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps. This operation can be accessed anonymously. Permissions required: The custom field option is returned as follows: * if the user has the Administer Jira global permission. * if the user has the Browse projects project permission for at least one project the custom field is used in, and the field is visible in at least one layout the user has permission to view.

    tags

    Issue custom field options

    name

    GetCustomFieldOption

    summary

    Get custom field option

    request

    GET:/rest/api/2/customFieldOption/{id}

    secure

    Parameters

    Returns Promise<CustomFieldOption>

getDashboard

  • description

    Returns a dashboard. This operation can be accessed anonymously. Permissions required: None. However, to get a dashboard, the dashboard must be shared with the user or the user must own it. Note, users with the Administer Jira global permission are considered owners of the System dashboard. The System dashboard is considered to be shared with all other users.

    tags

    Dashboards

    name

    GetDashboard

    summary

    Get dashboard

    request

    GET:/rest/api/2/dashboard/{id}

    secure

    Parameters

    Returns Promise<Dashboard>

getDashboardItemProperty

  • description

    Returns the key and value of a dashboard item property. A dashboard item enables an app to add user-specific information to a user dashboard. Dashboard items are exposed to users as gadgets that users can add to their dashboards. For more information on how users do this, see Adding and customizing gadgets. When an app creates a dashboard item it registers a callback to receive the dashboard item ID. The callback fires whenever the item is rendered or, where the item is configurable, the user edits the item. The app then uses this resource to store the item's content or configuration details. For more information on working with dashboard items, see Building a dashboard item for a JIRA Connect add-on and the Dashboard Item documentation. There is no resource to set or get dashboard items. This operation can be accessed anonymously. Permissions required: The user must be the owner of the dashboard or have the dashboard shared with them. Note, users with the Administer Jira global permission are considered owners of the System dashboard. The System dashboard is considered to be shared with all other users, and is accessible to anonymous users when Jira’s anonymous access is permitted.

    tags

    Dashboards

    name

    GetDashboardItemProperty

    summary

    Get dashboard item property

    request

    GET:/rest/api/2/dashboard/{dashboardId}/items/{itemId}/properties/{propertyKey}

    secure

    Parameters

    • dashboardId: string
    • itemId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getDashboardItemPropertyKeys

  • description

    Returns the keys of all properties for a dashboard item. This operation can be accessed anonymously. Permissions required: The user must be the owner of the dashboard or have the dashboard shared with them. Note, users with the Administer Jira global permission are considered owners of the System dashboard. The System dashboard is considered to be shared with all other users, and is accessible to anonymous users when Jira’s anonymous access is permitted.

    tags

    Dashboards

    name

    GetDashboardItemPropertyKeys

    summary

    Get dashboard item property keys

    request

    GET:/rest/api/2/dashboard/{dashboardId}/items/{itemId}/properties

    secure

    Parameters

    Returns Promise<PropertyKeys>

getDashboardsPaginated

  • getDashboardsPaginated(query?: { accountId?: string; dashboardName?: string; expand?: string; groupname?: string; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "favorite_count" | "-favorite_count" | "+favorite_count" | "id" | "-id" | "+id" | "is_favorite" | "-is_favorite" | "+is_favorite" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner"; owner?: string; projectId?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanDashboard>
  • description

    Returns a paginated list of dashboards. This operation is similar to Get dashboards except that the results can be refined to include dashboards that have specific attributes. For example, dashboards with a particular name. When multiple attributes are specified only filters matching all attributes are returned. This operation can be accessed anonymously. Permissions required: The following dashboards that match the query parameters are returned: * Dashboards owned by the user. Not returned for anonymous users. * Dashboards shared with a group that the user is a member of. Not returned for anonymous users. * Dashboards shared with a private project that the user can browse. Not returned for anonymous users. * Dashboards shared with a public project. * Dashboards shared with the public.

    tags

    Dashboards

    name

    GetDashboardsPaginated

    summary

    Search for dashboards

    request

    GET:/rest/api/2/dashboard/search

    secure

    Parameters

    • Optional query: { accountId?: string; dashboardName?: string; expand?: string; groupname?: string; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "favorite_count" | "-favorite_count" | "+favorite_count" | "id" | "-id" | "+id" | "is_favorite" | "-is_favorite" | "+is_favorite" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner"; owner?: string; projectId?: number; startAt?: number }
      • Optional accountId?: string
      • Optional dashboardName?: string
      • Optional expand?: string
      • Optional groupname?: string
      • Optional maxResults?: number
      • Optional orderBy?: "description" | "-description" | "+description" | "favorite_count" | "-favorite_count" | "+favorite_count" | "id" | "-id" | "+id" | "is_favorite" | "-is_favorite" | "+is_favorite" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner"
      • Optional owner?: string
      • Optional projectId?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanDashboard>

getDefaultShareScope

  • description

    Returns the default sharing settings for new filters and dashboards for a user. Permissions required: Permission to access Jira.

    tags

    Filter sharing

    name

    GetDefaultShareScope

    summary

    Get default share scope

    request

    GET:/rest/api/2/filter/defaultShareScope

    secure

    Parameters

    Returns Promise<DefaultShareScope>

getDefaultValues

  • description

    Returns a paginated list of defaults for a custom field. The results can be filtered by contextId, otherwise all values are returned. If no defaults are set for a context, nothing is returned. The returned object depends on type of the custom field: * CustomFieldContextDefaultValueDate (type datepicker) for date fields. * CustomFieldContextDefaultValueDateTime (type datetimepicker) for date-time fields. * CustomFieldContextDefaultValueSingleOption (type option.single) for single choice select lists and radio buttons. * CustomFieldContextDefaultValueMultipleOption (type option.multiple) for multiple choice select lists and checkboxes. * CustomFieldContextDefaultValueCascadingOption (type option.cascading) for cascading select lists. * CustomFieldContextSingleUserPickerDefaults (type single.user.select) for single users. * CustomFieldContextDefaultValueMultiUserPicker (type multi.user.select) for user lists. * CustomFieldContextDefaultValueSingleGroupPicker (type grouppicker.single) for single choice group picker. * CustomFieldContextDefaultValueMultipleGroupPicker (type grouppicker.multiple) for multiple choice group picker. * CustomFieldContextDefaultValueURL (type url) for URL. * CustomFieldContextDefaultValueProject (type project) for project picker. * CustomFieldContextDefaultValueFloat (type float) for float (a floating-point number). * CustomFieldContextDefaultValueLabels (type labels) for labels. * CustomFieldContextDefaultValueTextField (type textfield) for text field. * CustomFieldContextDefaultValueTextArea (type textarea) for text area field. * CustomFieldContextDefaultValueReadOnly (type readonly) for read only (text) field. * CustomFieldContextDefaultValueMultipleVersion (type version.multiple) for single choice version picker. * CustomFieldContextDefaultValueSingleVersion (type version.single) for multiple choice version picker. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    GetDefaultValues

    summary

    Get custom field contexts default values

    request

    GET:/rest/api/2/field/{fieldId}/context/defaultValue

    secure

    Parameters

    • fieldId: string
    • Optional query: { contextId?: number[]; maxResults?: number; startAt?: number }
      • Optional contextId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanCustomFieldContextDefaultValue>

getDefaultWorkflow

  • description

    Returns the default workflow for a workflow scheme. 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.

    tags

    Workflow schemes

    name

    GetDefaultWorkflow

    summary

    Get default workflow

    request

    GET:/rest/api/2/workflowscheme/{id}/default

    secure

    Parameters

    • id: number
    • Optional query: { returnDraftIfExists?: boolean }
      • Optional returnDraftIfExists?: boolean
    • params: RequestParams = {}

    Returns Promise<DefaultWorkflow>

getDraftDefaultWorkflow

  • description

    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.

    tags

    Workflow scheme drafts

    name

    GetDraftDefaultWorkflow

    summary

    Get draft default workflow

    request

    GET:/rest/api/2/workflowscheme/{id}/draft/default

    secure

    Parameters

    Returns Promise<DefaultWorkflow>

getDraftWorkflow

  • description

    Returns the workflow-issue type mappings for a workflow scheme's draft. Permissions required: Administer Jira global permission.

    tags

    Workflow scheme drafts

    name

    GetDraftWorkflow

    summary

    Get issue types for workflows in draft workflow scheme

    request

    GET:/rest/api/2/workflowscheme/{id}/draft/workflow

    secure

    Parameters

    • id: number
    • Optional query: { workflowName?: string }
      • Optional workflowName?: string
    • params: RequestParams = {}

    Returns Promise<IssueTypesWorkflowMapping>

getDynamicWebhooksForApp

getEditIssueMeta

  • getEditIssueMeta(issueIdOrKey: string, query?: { overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean }, params?: RequestParams): Promise<IssueUpdateMetadata>
  • description

    Returns the edit screen fields for an issue that are visible to and editable by the user. Use the information to populate the requests in Edit issue. Connect app users with admin permission (from user permissions and app scopes) and Forge app users with the manage:jira-configuration scope can return additional details using: * overrideScreenSecurity Returns hidden fields. * overrideEditableFlag Returns uneditable fields. For example, where an issue has a workflow status of closed none of its fields are editable. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. Note: For any fields to be editable the user must have the Edit issues project permission for the issue.

    tags

    Issues

    name

    GetEditIssueMeta

    summary

    Get edit issue metadata

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/editmeta

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean }
      • Optional overrideEditableFlag?: boolean
      • Optional overrideScreenSecurity?: boolean
    • params: RequestParams = {}

    Returns Promise<IssueUpdateMetadata>

getEvents

getFailedWebhooks

  • description

    Returns webhooks that have recently failed to be delivered to the requesting app after the maximum number of retries. After 72 hours the failure may no longer be returned by this operation. The oldest failure is returned first. This method uses a cursor-based pagination. To request the next page use the failure time of the last webhook on the list as the failedAfter value or use the URL provided in next. Permissions required: Only Connect apps can use this operation.

    tags

    Webhooks

    name

    GetFailedWebhooks

    summary

    Get failed webhooks

    request

    GET:/rest/api/2/webhook/failed

    secure

    Parameters

    • Optional query: { after?: number; maxResults?: number }
      • Optional after?: number
      • Optional maxResults?: number
    • params: RequestParams = {}

    Returns Promise<FailedWebhooks>

getFavouriteFilters

  • description

    Returns the visible favorite filters of the user. This operation can be accessed anonymously. Permissions required: A favorite filter is only visible to the user where the filter is: * owned by the user. * shared with a group that the user is a member of. * shared with a private project that the user has Browse projects project permission for. * shared with a public project. * shared with the public. For example, if the user favorites a public filter that is subsequently made private that filter is not returned by this operation.

    tags

    Filters

    name

    GetFavouriteFilters

    summary

    Get favorite filters

    request

    GET:/rest/api/2/filter/favourite

    secure

    Parameters

    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter[]>

getFeaturesForProject

getFieldAutoCompleteForQueryString

  • getFieldAutoCompleteForQueryString(query?: { fieldName?: string; fieldValue?: string; predicateName?: string; predicateValue?: string }, params?: RequestParams): Promise<AutoCompleteSuggestions>
  • description

    Returns the JQL search auto complete suggestions for a field. Suggestions can be obtained by providing: * fieldName to get a list of all values for the field. * fieldName and fieldValue to get a list of values containing the text in fieldValue. * fieldName and predicateName to get a list of all predicate values for the field. * fieldName, predicateName, and predicateValue to get a list of predicate values containing the text in predicateValue. This operation can be accessed anonymously. Permissions required: None.

    tags

    JQL

    name

    GetFieldAutoCompleteForQueryString

    summary

    Get field auto complete suggestions

    request

    GET:/rest/api/2/jql/autocompletedata/suggestions

    secure

    Parameters

    • Optional query: { fieldName?: string; fieldValue?: string; predicateName?: string; predicateValue?: string }
      • Optional fieldName?: string
      • Optional fieldValue?: string
      • Optional predicateName?: string
      • Optional predicateValue?: string
    • params: RequestParams = {}

    Returns Promise<AutoCompleteSuggestions>

getFieldConfigurationItems

  • description

    Returns a paginated list of all fields for a configuration. Only the fields from configurations used in company-managed (classic) projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    GetFieldConfigurationItems

    summary

    Get field configuration items

    request

    GET:/rest/api/2/fieldconfiguration/{id}/fields

    secure

    Parameters

    • id: number
    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFieldConfigurationItem>

getFieldConfigurationSchemeMappings

  • description

    Returns a paginated list of field configuration issue type items. Only items used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    GetFieldConfigurationSchemeMappings

    summary

    Get field configuration issue type items

    request

    GET:/rest/api/2/fieldconfigurationscheme/mapping

    secure

    Parameters

    • Optional query: { fieldConfigurationSchemeId?: number[]; maxResults?: number; startAt?: number }
      • Optional fieldConfigurationSchemeId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFieldConfigurationIssueTypeItem>

getFieldConfigurationSchemeProjectMapping

  • description

    Returns a paginated list of field configuration schemes and, for each scheme, a list of the projects that use it. The list is sorted by field configuration scheme ID. The first item contains the list of project IDs assigned to the default field configuration scheme. Only field configuration schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    GetFieldConfigurationSchemeProjectMapping

    summary

    Get field configuration schemes for projects

    request

    GET:/rest/api/2/fieldconfigurationscheme/project

    secure

    Parameters

    • query: { maxResults?: number; projectId: number[]; startAt?: number }
      • Optional maxResults?: number
      • projectId: number[]
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFieldConfigurationSchemeProjects>

getFields

  • description

    Returns system and custom issue fields according to the following rules: * Fields that cannot be added to the issue navigator are always returned. * Fields that cannot be placed on an issue screen are always returned. * Fields that depend on global Jira settings are only returned if the setting is enabled. That is, timetracking fields, subtasks, votes, and watches. * For all other fields, this operation only returns the fields that the user has permission to view (that is, the field is used in at least one project that the user has Browse Projects project permission for.) This operation can be accessed anonymously. Permissions required: None.

    tags

    Issue fields

    name

    GetFields

    summary

    Get fields

    request

    GET:/rest/api/2/field

    secure

    Parameters

    Returns Promise<FieldDetails[]>

getFieldsPaginated

  • getFieldsPaginated(query?: { expand?: string; id?: string[]; maxResults?: number; orderBy?: "name" | "-name" | "+name" | "contextsCount" | "-contextsCount" | "+contextsCount" | "lastUsed" | "-lastUsed" | "+lastUsed" | "screensCount" | "-screensCount" | "+screensCount"; query?: string; startAt?: number; type?: ("custom" | "system")[] }, params?: RequestParams): Promise<PageBeanField>
  • description

    Returns a paginated list of fields for Classic Jira projects. The list can include: * all fields. * specific fields, by defining id. * fields that contain a string in the field name or description, by defining query. * specific fields that contain a string in the field name or description, by defining id and query. Only custom fields can be queried, type must be set to custom. Permissions required: Administer Jira global permission.

    tags

    Issue fields

    name

    GetFieldsPaginated

    summary

    Get fields paginated

    request

    GET:/rest/api/2/field/search

    secure

    Parameters

    • Optional query: { expand?: string; id?: string[]; maxResults?: number; orderBy?: "name" | "-name" | "+name" | "contextsCount" | "-contextsCount" | "+contextsCount" | "lastUsed" | "-lastUsed" | "+lastUsed" | "screensCount" | "-screensCount" | "+screensCount"; query?: string; startAt?: number; type?: ("custom" | "system")[] }
      • Optional expand?: string
      • Optional id?: string[]
      • Optional maxResults?: number
      • Optional orderBy?: "name" | "-name" | "+name" | "contextsCount" | "-contextsCount" | "+contextsCount" | "lastUsed" | "-lastUsed" | "+lastUsed" | "screensCount" | "-screensCount" | "+screensCount"
      • Optional query?: string
      • Optional startAt?: number
      • Optional type?: ("custom" | "system")[]
    • params: RequestParams = {}

    Returns Promise<PageBeanField>

getFilter

  • description

    Returns a filter. This operation can be accessed anonymously. Permissions required: None, however, the filter is only returned where it is: * owned by the user. * shared with a group that the user is a member of. * shared with a private project that the user has Browse projects project permission for. * shared with a public project. * shared with the public.

    tags

    Filters

    name

    GetFilter

    summary

    Get filter

    request

    GET:/rest/api/2/filter/{id}

    secure

    Parameters

    • id: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter>

getFilters

  • description

    Returns all filters. Deprecated, use Search for filters that supports search and pagination. This operation can be accessed anonymously. Permissions required: None, however, only the following filters are returned: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    GetFilters

    summary

    Get filters

    request

    GET:/rest/api/2/filter

    deprecated
    secure

    Parameters

    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter[]>

getFiltersPaginated

  • getFiltersPaginated(query?: { accountId?: string; expand?: string; filterName?: string; groupname?: string; id?: number[]; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "id" | "-id" | "+id" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "favourite_count" | "-favourite_count" | "+favourite_count" | "is_favourite" | "-is_favourite" | "+is_favourite" | "is_shared" | "-is_shared" | "+is_shared"; owner?: string; projectId?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanFilterDetails>
  • description

    Returns a paginated list of filters. Use this operation to get: * specific filters, by defining id only. * filters that match all of the specified attributes. For example, all filters for a user with a particular word in their name. When multiple attributes are specified only filters matching all attributes are returned. This operation can be accessed anonymously. Permissions required: None, however, only the following filters that match the query parameters are returned: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    GetFiltersPaginated

    summary

    Search for filters

    request

    GET:/rest/api/2/filter/search

    secure

    Parameters

    • Optional query: { accountId?: string; expand?: string; filterName?: string; groupname?: string; id?: number[]; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "id" | "-id" | "+id" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "favourite_count" | "-favourite_count" | "+favourite_count" | "is_favourite" | "-is_favourite" | "+is_favourite" | "is_shared" | "-is_shared" | "+is_shared"; owner?: string; projectId?: number; startAt?: number }
      • Optional accountId?: string
      • Optional expand?: string
      • Optional filterName?: string
      • Optional groupname?: string
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional orderBy?: "description" | "-description" | "+description" | "id" | "-id" | "+id" | "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "favourite_count" | "-favourite_count" | "+favourite_count" | "is_favourite" | "-is_favourite" | "+is_favourite" | "is_shared" | "-is_shared" | "+is_shared"
      • Optional owner?: string
      • Optional projectId?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanFilterDetails>

getGroup

  • getGroup(query: { expand?: string; groupname: string }, params?: RequestParams): Promise<Group>
  • description

    This operation is deprecated, use group/member. Returns all users in a group. Permissions required: Administer Jira global permission.

    tags

    Groups

    name

    GetGroup

    summary

    Get group

    request

    GET:/rest/api/2/group

    deprecated
    secure

    Parameters

    • query: { expand?: string; groupname: string }
      • Optional expand?: string
      • groupname: string
    • params: RequestParams = {}

    Returns Promise<Group>

getHierarchy

  • description

    Get the issue type hierarchy for a next-gen project. The issue type hierarchy for a project consists of: * Epic at level 1 (optional). * One or more issue types at level 0 such as Story, Task, or Bug. Where the issue type Epic is defined, these issue types are used to break down the content of an epic. * Subtask at level -1 (optional). This issue type enables level 0 issue types to be broken down into components. Issues based on a level -1 issue type must have a parent issue. Permissions required: Browse projects project permission for the project.

    tags

    Projects

    name

    GetHierarchy

    summary

    Get project issue type hierarchy

    request

    GET:/rest/api/2/project/{projectId}/hierarchy

    deprecated
    secure

    Parameters

    Returns Promise<ProjectIssueTypeHierarchy>

getIdsOfWorklogsDeletedSince

  • description

    Returns a list of IDs and delete timestamps for worklogs deleted after a date and time. This resource is paginated, with a limit of 1000 worklogs per page. Each page lists worklogs from oldest to youngest. If the number of items in the date range exceeds 1000, until indicates the timestamp of the youngest item on the page. Also, nextPage provides the URL for the next page of worklogs. The lastPage parameter is set to true on the last page of worklogs. This resource does not return worklogs deleted during the minute preceding the request. Permissions required: Permission to access Jira.

    tags

    Issue worklogs

    name

    GetIdsOfWorklogsDeletedSince

    summary

    Get IDs of deleted worklogs

    request

    GET:/rest/api/2/worklog/deleted

    secure

    Parameters

    • Optional query: { since?: number }
      • Optional since?: number
    • params: RequestParams = {}

    Returns Promise<ChangedWorklogs>

getIdsOfWorklogsModifiedSince

  • description

    Returns a list of IDs and update timestamps for worklogs updated after a date and time. This resource is paginated, with a limit of 1000 worklogs per page. Each page lists worklogs from oldest to youngest. If the number of items in the date range exceeds 1000, until indicates the timestamp of the youngest item on the page. Also, nextPage provides the URL for the next page of worklogs. The lastPage parameter is set to true on the last page of worklogs. This resource does not return worklogs updated during the minute preceding the request. Permissions required: Permission to access Jira, however, worklogs are only returned where either of the following is true: * the worklog is set as Viewable by All Users. * the user is a member of a project role or group with permission to view the worklog.

    tags

    Issue worklogs

    name

    GetIdsOfWorklogsModifiedSince

    summary

    Get IDs of updated worklogs

    request

    GET:/rest/api/2/worklog/updated

    secure

    Parameters

    • Optional query: { expand?: string; since?: number }
      • Optional expand?: string
      • Optional since?: number
    • params: RequestParams = {}

    Returns Promise<ChangedWorklogs>

getIssue

  • getIssue(issueIdOrKey: string, query?: { expand?: string; fields?: string[]; fieldsByKeys?: boolean; properties?: string[]; updateHistory?: boolean }, params?: RequestParams): Promise<IssueBean>
  • description

    Returns the details for an issue. The issue is identified by its ID or key, however, if the identifier doesn't match an issue, a case-insensitive search and check for moved issues is performed. If a matching issue is found its details are returned, a 302 or other redirect is not returned. The issue key returned in the response is the key of the issue found. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    GetIssue

    summary

    Get issue

    request

    GET:/rest/api/2/issue/{issueIdOrKey}

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { expand?: string; fields?: string[]; fieldsByKeys?: boolean; properties?: string[]; updateHistory?: boolean }
      • Optional expand?: string
      • Optional fields?: string[]
      • Optional fieldsByKeys?: boolean
      • Optional properties?: string[]
      • Optional updateHistory?: boolean
    • params: RequestParams = {}

    Returns Promise<IssueBean>

getIssueAllTypes

  • description

    Returns all issue types. This operation can be accessed anonymously. Permissions required: Issue types are only returned as follows: * if the user has the Administer Jira global permission, all issue types are returned. * if the user has the Browse projects project permission for one or more projects, the issue types associated with the projects the user has permission to browse are returned.

    tags

    Issue types

    name

    GetIssueAllTypes

    summary

    Get all issue types for user

    request

    GET:/rest/api/2/issuetype

    secure

    Parameters

    Returns Promise<IssueTypeDetails[]>

getIssueFieldOption

  • description

    Returns an option from a select list issue field. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    GetIssueFieldOption

    summary

    Get issue field option

    request

    GET:/rest/api/2/field/{fieldKey}/option/{optionId}

    secure

    Parameters

    Returns Promise<IssueFieldOption>

getIssueLink

getIssueLinkType

getIssueLinkTypes

getIssueNavigatorDefaultColumns

getIssuePickerResource

  • getIssuePickerResource(query?: { currentIssueKey?: string; currentJQL?: string; currentProjectId?: string; query?: string; showSubTaskParent?: boolean; showSubTasks?: boolean }, params?: RequestParams): Promise<IssuePickerSuggestions>
  • description

    Returns lists of issues matching a query string. Use this resource to provide auto-completion suggestions when the user is looking for an issue using a word or string. This operation returns two lists: * History Search which includes issues from the user's history of created, edited, or viewed issues that contain the string in the query parameter. * Current Search which includes issues that match the JQL expression in currentJQL and contain the string in the query parameter. This operation can be accessed anonymously. Permissions required: None.

    tags

    Issue search

    name

    GetIssuePickerResource

    summary

    Get issue picker suggestions

    request

    GET:/rest/api/2/issue/picker

    secure

    Parameters

    • Optional query: { currentIssueKey?: string; currentJQL?: string; currentProjectId?: string; query?: string; showSubTaskParent?: boolean; showSubTasks?: boolean }
      • Optional currentIssueKey?: string
      • Optional currentJQL?: string
      • Optional currentProjectId?: string
      • Optional query?: string
      • Optional showSubTaskParent?: boolean
      • Optional showSubTasks?: boolean
    • params: RequestParams = {}

    Returns Promise<IssuePickerSuggestions>

getIssueProperty

  • description

    Returns the key and value of an issue's property. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue properties

    name

    GetIssueProperty

    summary

    Get issue property

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getIssuePropertyKeys

  • description

    Returns the URLs and keys of an issue's properties. This operation can be accessed anonymously. Permissions required: Property details are only returned where the user has: * Browse projects project permission for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue properties

    name

    GetIssuePropertyKeys

    summary

    Get issue property keys

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/properties

    secure

    Parameters

    Returns Promise<PropertyKeys>

getIssueSecurityLevel

  • description

    Returns details of an issue security level. Use Get issue security scheme to obtain the IDs of issue security levels associated with the issue security scheme. This operation can be accessed anonymously. Permissions required: None.

    tags

    Issue security level

    name

    GetIssueSecurityLevel

    summary

    Get issue security level

    request

    GET:/rest/api/2/securitylevel/{id}

    secure

    Parameters

    Returns Promise<SecurityLevel>

getIssueSecurityLevelMembers

  • getIssueSecurityLevelMembers(issueSecuritySchemeId: number, query?: { expand?: string; issueSecurityLevelId?: number[]; maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanIssueSecurityLevelMember>
  • description

    Returns issue security level members. Only issue security level members in context of classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue security level

    name

    GetIssueSecurityLevelMembers

    summary

    Get issue security level members

    request

    GET:/rest/api/2/issuesecurityschemes/{issueSecuritySchemeId}/members

    secure

    Parameters

    • issueSecuritySchemeId: number
    • Optional query: { expand?: string; issueSecurityLevelId?: number[]; maxResults?: number; startAt?: number }
      • Optional expand?: string
      • Optional issueSecurityLevelId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueSecurityLevelMember>

getIssueSecurityScheme

getIssueSecuritySchemes

getIssueType

getIssueTypeMappingsForContexts

  • description

    Returns a paginated list of context to issue type mappings for a custom field. Mappings are returned for all contexts or a list of contexts. Mappings are ordered first by context ID and then by issue type ID. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    GetIssueTypeMappingsForContexts

    summary

    Get issue types for custom field context

    request

    GET:/rest/api/2/field/{fieldId}/context/issuetypemapping

    secure

    Parameters

    • fieldId: string
    • Optional query: { contextId?: number[]; maxResults?: number; startAt?: number }
      • Optional contextId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeToContextMapping>

getIssueTypeProperty

  • description

    Returns the key and value of the issue type property. This operation can be accessed anonymously. Permissions required: * Administer Jira global permission to get the details of any issue type. * Browse projects project permission to get the details of any issue types associated with the projects the user has permission to browse.

    tags

    Issue type properties

    name

    GetIssueTypeProperty

    summary

    Get issue type property

    request

    GET:/rest/api/2/issuetype/{issueTypeId}/properties/{propertyKey}

    secure

    Parameters

    • issueTypeId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getIssueTypePropertyKeys

  • description

    Returns all the issue type property keys of the issue type. This operation can be accessed anonymously. Permissions required: * Administer Jira global permission to get the property keys of any issue type. * Browse projects project permission to get the property keys of any issue types associated with the projects the user has permission to browse.

    tags

    Issue type properties

    name

    GetIssueTypePropertyKeys

    summary

    Get issue type property keys

    request

    GET:/rest/api/2/issuetype/{issueTypeId}/properties

    secure

    Parameters

    Returns Promise<PropertyKeys>

getIssueTypeSchemeForProjects

  • description

    Returns a paginated list of issue type schemes and, for each issue type scheme, a list of the projects that use it. Only issue type schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    GetIssueTypeSchemeForProjects

    summary

    Get issue type schemes for projects

    request

    GET:/rest/api/2/issuetypescheme/project

    secure

    Parameters

    • query: { maxResults?: number; projectId: number[]; startAt?: number }
      • Optional maxResults?: number
      • projectId: number[]
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeSchemeProjects>

getIssueTypeSchemesMapping

  • description

    Returns a paginated list of issue type scheme items. Only issue type scheme items used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    GetIssueTypeSchemesMapping

    summary

    Get issue type scheme items

    request

    GET:/rest/api/2/issuetypescheme/mapping

    secure

    Parameters

    • Optional query: { issueTypeSchemeId?: number[]; maxResults?: number; startAt?: number }
      • Optional issueTypeSchemeId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeSchemeMapping>

getIssueTypeScreenSchemeMappings

  • description

    Returns a paginated list of issue type screen scheme items. Only issue type screen schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    GetIssueTypeScreenSchemeMappings

    summary

    Get issue type screen scheme items

    request

    GET:/rest/api/2/issuetypescreenscheme/mapping

    secure

    Parameters

    • Optional query: { issueTypeScreenSchemeId?: number[]; maxResults?: number; startAt?: number }
      • Optional issueTypeScreenSchemeId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeScreenSchemeItem>

getIssueTypeScreenSchemeProjectAssociations

  • description

    Returns a paginated list of issue type screen schemes and, for each issue type screen scheme, a list of the projects that use it. Only issue type screen schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    GetIssueTypeScreenSchemeProjectAssociations

    summary

    Get issue type screen schemes for projects

    request

    GET:/rest/api/2/issuetypescreenscheme/project

    secure

    Parameters

    • query: { maxResults?: number; projectId: number[]; startAt?: number }
      • Optional maxResults?: number
      • projectId: number[]
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeScreenSchemesProjects>

getIssueTypeScreenSchemes

  • description

    Returns a paginated list of issue type screen schemes. Only issue type screen schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    GetIssueTypeScreenSchemes

    summary

    Get issue type screen schemes

    request

    GET:/rest/api/2/issuetypescreenscheme

    secure

    Parameters

    • Optional query: { id?: number[]; maxResults?: number; startAt?: number }
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueTypeScreenScheme>

getIssueTypesForProject

getIssueWatchers

  • description

    Returns the watchers for an issue. This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is ini * If issue-level security is configured, issue-level security permission to view the issue. * To see details of users on the watchlist other than themselves, View voters and watchers project permission for the project that the issue is in.

    tags

    Issue watchers

    name

    GetIssueWatchers

    summary

    Get issue watchers

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/watchers

    secure

    Parameters

    Returns Promise<Watchers>

getIssueWorklog

  • getIssueWorklog(issueIdOrKey: string, query?: { expand?: string; maxResults?: number; startAt?: number; startedAfter?: number; startedBefore?: number }, params?: RequestParams): Promise<PageOfWorklogs>
  • description

    Returns worklogs for an issue, starting from the oldest worklog or from the worklog started on or after a date and time. Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking. This operation can be accessed anonymously. Permissions required: Workloads are only returned where the user has: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklogs

    name

    GetIssueWorklog

    summary

    Get issue worklogs

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/worklog

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { expand?: string; maxResults?: number; startAt?: number; startedAfter?: number; startedBefore?: number }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional startAt?: number
      • Optional startedAfter?: number
      • Optional startedBefore?: number
    • params: RequestParams = {}

    Returns Promise<PageOfWorklogs>

getLicense

  • description

    Returns licensing information about the Jira instance. Permissions required: None.

    tags

    Instance information

    name

    GetLicense

    summary

    Get license

    request

    GET:/rest/api/2/instance/license

    secure

    Parameters

    Returns Promise<License>

getLocale

  • description

    Returns the locale for the user. If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn't match a locale available Jira, the site default locale is returned. This operation can be accessed anonymously. Permissions required: None.

    tags

    Myself

    name

    GetLocale

    summary

    Get locale

    request

    GET:/rest/api/2/mypreferences/locale

    secure

    Parameters

    Returns Promise<Locale>

getMyFilters

  • getMyFilters(query?: { expand?: string; includeFavourites?: boolean }, params?: RequestParams): Promise<Filter[]>
  • description

    Returns the filters owned by the user. If includeFavourites is true, the user's visible favorite filters are also returned. Permissions required: Permission to access Jira, however, a favorite filters is only visible to the user where the filter is: * owned by the user. * shared with a group that the user is a member of. * shared with a private project that the user has Browse projects project permission for. * shared with a public project. * shared with the public. For example, if the user favorites a public filter that is subsequently made private that filter is not returned by this operation.

    tags

    Filters

    name

    GetMyFilters

    summary

    Get my filters

    request

    GET:/rest/api/2/filter/my

    secure

    Parameters

    • Optional query: { expand?: string; includeFavourites?: boolean }
      • Optional expand?: string
      • Optional includeFavourites?: boolean
    • params: RequestParams = {}

    Returns Promise<Filter[]>

getMyPermissions

  • getMyPermissions(query?: { issueId?: string; issueKey?: string; permissions?: string; projectConfigurationUuid?: string; projectId?: string; projectKey?: string; projectUuid?: string }, params?: RequestParams): Promise<Permissions>
  • description

    Returns a list of permissions indicating which permissions the user has. Details of the user's permissions can be obtained in a global, project, or issue context. The user is reported as having a project permission: * in the global context, if the user has the project permission in any project. * for a project, where the project permission is determined using issue data, if the user meets the permission's criteria for any issue in the project. Otherwise, if the user has the project permission in the project. * for an issue, where a project permission is determined using issue data, if the user has the permission in the issue. Otherwise, if the user has the project permission in the project containing the issue. This means that users may be shown as having an issue permission (such as EDIT_ISSUES) in the global context or a project context but may not have the permission for any or all issues. For example, if Reporters have the EDIT_ISSUES permission a user would be shown as having this permission in the global context or the context of a project, because any user can be a reporter. However, if they are not the user who reported the issue queried they would not have EDIT_ISSUES permission for that issue. Global permissions are unaffected by context. This operation can be accessed anonymously. Permissions required: None.

    tags

    Permissions

    name

    GetMyPermissions

    summary

    Get my permissions

    request

    GET:/rest/api/2/mypermissions

    secure

    Parameters

    • Optional query: { issueId?: string; issueKey?: string; permissions?: string; projectConfigurationUuid?: string; projectId?: string; projectKey?: string; projectUuid?: string }
      • Optional issueId?: string
      • Optional issueKey?: string
      • Optional permissions?: string
      • Optional projectConfigurationUuid?: string
      • Optional projectId?: string
      • Optional projectKey?: string
      • Optional projectUuid?: string
    • params: RequestParams = {}

    Returns Promise<Permissions>

getNotificationScheme

  • description

    Returns a notification scheme, including the list of events and the recipients who will receive notifications for those events. Permissions required: Permission to access Jira, however the user must have permission to administer at least one project associated with the notification scheme.

    tags

    Issue notification schemes

    name

    GetNotificationScheme

    summary

    Get notification scheme

    request

    GET:/rest/api/2/notificationscheme/{id}

    secure

    Parameters

    • id: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<NotificationScheme>

getNotificationSchemeForProject

getNotificationSchemes

  • description

    Returns a paginated list of notification schemes ordered by display name. ### About notification schemes ### A notification scheme is a list of events and recipients who will receive notifications for those events. The list is contained within the notificationSchemeEvents object and contains pairs of events and notifications: * event Identifies the type of event. The events can be Jira system events or custom events. * notifications Identifies the recipients of notifications for each event. Recipients can be any of the following types: * CurrentAssignee * Reporter * CurrentUser * ProjectLead * ComponentLead * User (the parameter is the user key) * Group (the parameter is the group name) * ProjectRole (the parameter is the project role ID) * EmailAddress * AllWatchers * UserCustomField (the parameter is the ID of the custom field) * GroupCustomField(the parameter is the ID of the custom field) Note that you should allow for events without recipients to appear in responses. Permissions required: Permission to access Jira, however the user must have permission to administer at least one project associated with a notification scheme for it to be returned.

    tags

    Issue notification schemes

    name

    GetNotificationSchemes

    summary

    Get notification schemes paginated

    request

    GET:/rest/api/2/notificationscheme

    secure

    Parameters

    • Optional query: { expand?: string; maxResults?: number; startAt?: number }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanNotificationScheme>

getOptionsForContext

  • description

    Returns a paginated list of all custom field option for a context. Options are returned first then cascading options, in the order they display in Jira. This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations. Permissions required: Administer Jira global permission.

    tags

    Issue custom field options

    name

    GetOptionsForContext

    summary

    Get custom field options (context)

    request

    GET:/rest/api/2/field/{fieldId}/context/{contextId}/option

    secure

    Parameters

    • fieldId: string
    • contextId: number
    • Optional query: { maxResults?: number; onlyOptions?: boolean; optionId?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional onlyOptions?: boolean
      • Optional optionId?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanCustomFieldContextOption>

getPermissionScheme

  • description

    Returns a permission scheme. Permissions required: Permission to access Jira.

    tags

    Permission schemes

    name

    GetPermissionScheme

    summary

    Get permission scheme

    request

    GET:/rest/api/2/permissionscheme/{schemeId}

    secure

    Parameters

    • schemeId: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<PermissionScheme>

getPermissionSchemeGrant

  • getPermissionSchemeGrant(schemeId: number, permissionId: number, query?: { expand?: string }, params?: RequestParams): Promise<PermissionGrant>
  • description

    Returns a permission grant. Permissions required: Permission to access Jira.

    tags

    Permission schemes

    name

    GetPermissionSchemeGrant

    summary

    Get permission scheme grant

    request

    GET:/rest/api/2/permissionscheme/{schemeId}/permission/{permissionId}

    secure

    Parameters

    • schemeId: number
    • permissionId: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<PermissionGrant>

getPermissionSchemeGrants

  • description

    Returns all permission grants for a permission scheme. Permissions required: Permission to access Jira.

    tags

    Permission schemes

    name

    GetPermissionSchemeGrants

    summary

    Get permission scheme grants

    request

    GET:/rest/api/2/permissionscheme/{schemeId}/permission

    secure

    Parameters

    • schemeId: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<PermissionGrants>

getPermittedProjects

getPreference

  • getPreference(query: { key: string }, params?: RequestParams): Promise<string>
  • description

    Returns the value of a preference of the current user. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default this is not set and the user takes the locale of the instance. * jira.user.timezone The time zone of the user. By default this is not set and the user takes the timezone of the instance. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    GetPreference

    summary

    Get preference

    request

    GET:/rest/api/2/mypreferences

    secure

    Parameters

    Returns Promise<string>

getPriorities

getPriority

  • description

    Returns an issue priority. Permissions required: Permission to access Jira.

    tags

    Issue priorities

    name

    GetPriority

    summary

    Get priority

    request

    GET:/rest/api/2/priority/{id}

    secure

    Parameters

    Returns Promise<Priority>

getProject

  • getProject(projectIdOrKey: string, query?: { expand?: string; properties?: string[] }, params?: RequestParams): Promise<Project>
  • description

    Returns the project details for a project. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project.

    tags

    Projects

    name

    GetProject

    summary

    Get project

    request

    GET:/rest/api/2/project/{projectIdOrKey}

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { expand?: string; properties?: string[] }
      • Optional expand?: string
      • Optional properties?: string[]
    • params: RequestParams = {}

    Returns Promise<Project>

getProjectCategoryById

getProjectComponents

getProjectComponentsPaginated

  • getProjectComponentsPaginated(projectIdOrKey: string, query?: { maxResults?: number; orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "issueCount" | "-issueCount" | "+issueCount" | "lead" | "-lead" | "+lead"; query?: string; startAt?: number }, params?: RequestParams): Promise<PageBeanComponentWithIssueCount>
  • description

    Returns a paginated list of all components in a project. See the Get project components resource if you want to get a full list of versions without pagination. This operation can be accessed anonymously. Permissions required: Browse Projects project permission for the project.

    tags

    Project components

    name

    GetProjectComponentsPaginated

    summary

    Get project components paginated

    request

    GET:/rest/api/2/project/{projectIdOrKey}/component

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { maxResults?: number; orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "issueCount" | "-issueCount" | "+issueCount" | "lead" | "-lead" | "+lead"; query?: string; startAt?: number }
      • Optional maxResults?: number
      • Optional orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "issueCount" | "-issueCount" | "+issueCount" | "lead" | "-lead" | "+lead"
      • Optional query?: string
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanComponentWithIssueCount>

getProjectContextMapping

  • description

    Returns a paginated list of context to project mappings for a custom field. The result can be filtered by contextId. Otherwise, all mappings are returned. Invalid IDs are ignored. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    GetProjectContextMapping

    summary

    Get project mappings for custom field context

    request

    GET:/rest/api/2/field/{fieldId}/context/projectmapping

    secure

    Parameters

    • fieldId: string
    • Optional query: { contextId?: number[]; maxResults?: number; startAt?: number }
      • Optional contextId?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanCustomFieldContextProjectMapping>

getProjectEmail

getProjectIssueSecurityScheme

getProjectProperty

getProjectPropertyKeys

getProjectRole

  • description

    Returns a project role's details and actors associated with the project. The list of actors is sorted by display name. To check whether a user belongs to a role based on their group memberships, use Get user with the groups expand parameter selected. Then check whether the user keys and groups match with the actors returned for the project. This operation can be accessed anonymously. Permissions required: Administer Projects project permission for the project or Administer Jira global permission.

    tags

    Project roles

    name

    GetProjectRole

    summary

    Get project role for project

    request

    GET:/rest/api/2/project/{projectIdOrKey}/role/{id}

    secure

    Parameters

    Returns Promise<ProjectRole>

getProjectRoleActorsForRole

getProjectRoleById

  • description

    Gets the project role details and the default actors associated with the role. The list of default actors is sorted by display name. Permissions required: Administer Jira global permission.

    tags

    Project roles

    name

    GetProjectRoleById

    summary

    Get project role by ID

    request

    GET:/rest/api/2/role/{id}

    secure

    Parameters

    Returns Promise<ProjectRole>

getProjectRoleDetails

  • getProjectRoleDetails(projectIdOrKey: string, query?: { currentMember?: boolean; excludeConnectAddons?: boolean }, params?: RequestParams): Promise<ProjectRoleDetails[]>
  • description

    Returns all project roles and the details for each role. Note that the list of project roles is common to all projects. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer projects project permission for the project.

    tags

    Project roles

    name

    GetProjectRoleDetails

    summary

    Get project role details

    request

    GET:/rest/api/2/project/{projectIdOrKey}/roledetails

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { currentMember?: boolean; excludeConnectAddons?: boolean }
      • Optional currentMember?: boolean
      • Optional excludeConnectAddons?: boolean
    • params: RequestParams = {}

    Returns Promise<ProjectRoleDetails[]>

getProjectRoles

  • getProjectRoles(projectIdOrKey: string, params?: RequestParams): Promise<Record<string, string>>
  • description

    Returns a list of project roles for the project returning the name and self URL for each role. Note that all project roles are shared with all projects in Jira Cloud. See Get all project roles for more information. This operation can be accessed anonymously. Permissions required: Administer Projects project permission for any project on the site or Administer Jira global permission.

    tags

    Project roles

    name

    GetProjectRoles

    summary

    Get project roles for project

    request

    GET:/rest/api/2/project/{projectIdOrKey}/role

    secure

    Parameters

    Returns Promise<Record<string, string>>

getProjectTypeByKey

  • getProjectTypeByKey(projectTypeKey: "software" | "service_desk" | "business" | "product_discovery", params?: RequestParams): Promise<ProjectType>
  • description

    Returns a project type. This operation can be accessed anonymously. Permissions required: None.

    tags

    Project types

    name

    GetProjectTypeByKey

    summary

    Get project type by key

    request

    GET:/rest/api/2/project/type/{projectTypeKey}

    secure

    Parameters

    • projectTypeKey: "software" | "service_desk" | "business" | "product_discovery"
    • params: RequestParams = {}

    Returns Promise<ProjectType>

getProjectVersions

  • getProjectVersions(projectIdOrKey: string, query?: { expand?: string }, params?: RequestParams): Promise<Version[]>
  • description

    Returns all versions in a project. The response is not paginated. Use Get project versions paginated if you want to get the versions in a project with pagination. This operation can be accessed anonymously. Permissions required: Browse Projects project permission for the project.

    tags

    Project versions

    name

    GetProjectVersions

    summary

    Get project versions

    request

    GET:/rest/api/2/project/{projectIdOrKey}/versions

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Version[]>

getProjectVersionsPaginated

  • getProjectVersionsPaginated(projectIdOrKey: string, query?: { expand?: string; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "releaseDate" | "-releaseDate" | "+releaseDate" | "sequence" | "-sequence" | "+sequence" | "startDate" | "-startDate" | "+startDate"; query?: string; startAt?: number; status?: string }, params?: RequestParams): Promise<PageBeanVersion>
  • description

    Returns a paginated list of all versions in a project. See the Get project versions resource if you want to get a full list of versions without pagination. This operation can be accessed anonymously. Permissions required: Browse Projects project permission for the project.

    tags

    Project versions

    name

    GetProjectVersionsPaginated

    summary

    Get project versions paginated

    request

    GET:/rest/api/2/project/{projectIdOrKey}/version

    secure

    Parameters

    • projectIdOrKey: string
    • Optional query: { expand?: string; maxResults?: number; orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "releaseDate" | "-releaseDate" | "+releaseDate" | "sequence" | "-sequence" | "+sequence" | "startDate" | "-startDate" | "+startDate"; query?: string; startAt?: number; status?: string }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional orderBy?: "description" | "-description" | "+description" | "name" | "-name" | "+name" | "releaseDate" | "-releaseDate" | "+releaseDate" | "sequence" | "-sequence" | "+sequence" | "startDate" | "-startDate" | "+startDate"
      • Optional query?: string
      • Optional startAt?: number
      • Optional status?: string
    • params: RequestParams = {}

    Returns Promise<PageBeanVersion>

getProjectsForIssueTypeScreenScheme

  • getProjectsForIssueTypeScreenScheme(issueTypeScreenSchemeId: number, query?: { maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanProjectDetails>
  • description

    Returns a paginated list of projects associated with an issue type screen scheme. Only company-managed projects associated with an issue type screen scheme are returned. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    GetProjectsForIssueTypeScreenScheme

    summary

    Get issue type screen scheme projects

    request

    GET:/rest/api/2/issuetypescreenscheme/{issueTypeScreenSchemeId}/project

    secure

    Parameters

    • issueTypeScreenSchemeId: number
    • Optional query: { maxResults?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanProjectDetails>

getRecent

  • getRecent(query?: { expand?: string; properties?: object[] }, params?: RequestParams): Promise<Project[]>
  • description

    Returns a list of up to 20 projects recently viewed by the user that are still visible to the user. This operation can be accessed anonymously. Permissions required: Projects are returned only where the user has one of: * Browse Projects project permission for the project. * Administer Projects project permission for the project. * Administer Jira global permission.

    tags

    Projects

    name

    GetRecent

    summary

    Get recent projects

    request

    GET:/rest/api/2/project/recent

    secure

    Parameters

    • Optional query: { expand?: string; properties?: object[] }
      • Optional expand?: string
      • Optional properties?: object[]
    • params: RequestParams = {}

    Returns Promise<Project[]>

getRemoteIssueLinkById

getRemoteIssueLinks

  • description

    Returns the remote issue links for an issue. When a remote issue link global ID is provided the record with that global ID is returned, otherwise all remote issue links are returned. Where a global ID includes reserved URL characters these must be escaped in the request. For example, pass system=http://www.mycompany.com/support&id=1 as system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue remote links

    name

    GetRemoteIssueLinks

    summary

    Get remote issue links

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/remotelink

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { globalId?: string }
      • Optional globalId?: string
    • params: RequestParams = {}

    Returns Promise<RemoteIssueLink>

getResolution

  • description

    Returns an issue resolution value. Permissions required: Permission to access Jira.

    tags

    Issue resolutions

    name

    GetResolution

    summary

    Get resolution

    request

    GET:/rest/api/2/resolution/{id}

    secure

    Parameters

    Returns Promise<Resolution>

getResolutions

getScreenSchemes

  • description

    Returns a paginated list of screen schemes. Only screen schemes used in classic projects are returned. Permissions required: Administer Jira global permission.

    tags

    Screen schemes

    name

    GetScreenSchemes

    summary

    Get screen schemes

    request

    GET:/rest/api/2/screenscheme

    secure

    Parameters

    • Optional query: { id?: number[]; maxResults?: number; startAt?: number }
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanScreenScheme>

getScreens

  • description

    Returns a paginated list of all screens or those specified by one or more screen IDs. Permissions required: Administer Jira global permission.

    tags

    Screens

    name

    GetScreens

    summary

    Get screens

    request

    GET:/rest/api/2/screens

    secure

    Parameters

    • Optional query: { id?: number[]; maxResults?: number; startAt?: number }
      • Optional id?: number[]
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanScreen>

getScreensForField

  • description

    Returns a paginated list of the screens a field is used in. Permissions required: Administer Jira global permission.

    tags

    Screens

    name

    GetScreensForField

    summary

    Get screens for a field

    request

    GET:/rest/api/2/field/{fieldId}/screens

    secure

    Parameters

    • fieldId: string
    • Optional query: { expand?: string; maxResults?: number; startAt?: number }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanScreenWithTab>

getSecurityLevelsForProject

getSelectableIssueFieldOptions

  • description

    Returns a paginated list of options for a select list issue field that can be viewed and selected by the user. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Permission to access Jira.

    tags

    Issue custom field options (apps)

    name

    GetSelectableIssueFieldOptions

    summary

    Get selectable issue field options

    request

    GET:/rest/api/2/field/{fieldKey}/option/suggestions/edit

    secure

    Parameters

    • fieldKey: string
    • Optional query: { maxResults?: number; projectId?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional projectId?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueFieldOption>

getSelectedTimeTrackingImplementation

getServerInfo

getSharePermission

  • description

    Returns a share permission for a filter. A filter can be shared with groups, projects, all logged-in users, or the public. Sharing with all logged-in users or the public is known as a global share permission. This operation can be accessed anonymously. Permissions required: None, however, a share permission is only returned for: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filter sharing

    name

    GetSharePermission

    summary

    Get share permission

    request

    GET:/rest/api/2/filter/{id}/permission/{permissionId}

    secure

    Parameters

    Returns Promise<SharePermission>

getSharePermissions

  • description

    Returns the share permissions for a filter. A filter can be shared with groups, projects, all logged-in users, or the public. Sharing with all logged-in users or the public is known as a global share permission. This operation can be accessed anonymously. Permissions required: None, however, share permissions are only returned for: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filter sharing

    name

    GetSharePermissions

    summary

    Get share permissions

    request

    GET:/rest/api/2/filter/{id}/permission

    secure

    Parameters

    Returns Promise<SharePermission[]>

getSharedTimeTrackingConfiguration

getStatus

  • description

    Returns a status. The status must be associated with a workflow to be returned. If a name is used on more than one status, only the status found first is returned. Therefore, identifying the status by its ID may be preferable. This operation can be accessed anonymously. Permissions required: None.

    tags

    Workflow statuses

    name

    GetStatus

    summary

    Get status

    request

    GET:/rest/api/2/status/{idOrName}

    secure

    Parameters

    Returns Promise<StatusDetails>

getStatusCategories

getStatusCategory

  • description

    Returns a status category. Status categories provided a mechanism for categorizing statuses. Permissions required: Permission to access Jira.

    tags

    Workflow status categories

    name

    GetStatusCategory

    summary

    Get status category

    request

    GET:/rest/api/2/statuscategory/{idOrKey}

    secure

    Parameters

    Returns Promise<StatusCategory>

getStatuses

  • description

    Returns a list of all statuses associated with workflows. This operation can be accessed anonymously. Permissions required: None.

    tags

    Workflow statuses

    name

    GetStatuses

    summary

    Get all statuses

    request

    GET:/rest/api/2/status

    secure

    Parameters

    Returns Promise<StatusDetails[]>

getTask

  • description

    Returns the status of a long-running asynchronous task. When a task has finished, this operation returns the JSON blob applicable to the task. See the documentation of the operation that created the task for details. Task details are not permanently retained. As of September 2019, details are retained for 14 days although this period may change without notice. Permissions required: either of: * Administer Jira global permission. * Creator of the task.

    tags

    Tasks

    name

    GetTask

    summary

    Get task

    request

    GET:/rest/api/2/task/{taskId}

    secure

    Parameters

    Returns Promise<TaskProgressBeanObject>

getTransitions

  • getTransitions(issueIdOrKey: string, query?: { expand?: string; includeUnavailableTransitions?: boolean; skipRemoteOnlyCondition?: boolean; sortByOpsBarAndStatus?: boolean; transitionId?: string }, params?: RequestParams): Promise<Transitions>
  • description

    Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status. Note, if a request is made for a transition that does not exist or cannot be performed on the issue, given its status, the response will return any empty transitions list. This operation can be accessed anonymously. Permissions required: A list or transition is returned only when the user has: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. However, if the user does not have the Transition issues project permission the response will not list any transitions.

    tags

    Issues

    name

    GetTransitions

    summary

    Get transitions

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/transitions

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { expand?: string; includeUnavailableTransitions?: boolean; skipRemoteOnlyCondition?: boolean; sortByOpsBarAndStatus?: boolean; transitionId?: string }
      • Optional expand?: string
      • Optional includeUnavailableTransitions?: boolean
      • Optional skipRemoteOnlyCondition?: boolean
      • Optional sortByOpsBarAndStatus?: boolean
      • Optional transitionId?: string
    • params: RequestParams = {}

    Returns Promise<Transitions>

getUser

  • getUser(query?: { accountId?: string; expand?: string; key?: string; username?: string }, params?: RequestParams): Promise<User>
  • description

    Returns a user. Permissions required: Browse users and groups global permission.

    tags

    Users

    name

    GetUser

    summary

    Get user

    request

    GET:/rest/api/2/user

    secure

    Parameters

    • Optional query: { accountId?: string; expand?: string; key?: string; username?: string }
      • Optional accountId?: string
      • Optional expand?: string
      • Optional key?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<User>

getUserDefaultColumns

  • getUserDefaultColumns(query?: { accountId?: string; username?: string }, params?: RequestParams): Promise<ColumnItem[]>
  • description

    Returns the default issue table columns for the user. If accountId is not passed in the request, the calling user's details are returned. Permissions required: * Administer Jira global permission, to get the column details for any user. * Permission to access Jira, to get the calling user's column details.

    tags

    Users

    name

    GetUserDefaultColumns

    summary

    Get user default columns

    request

    GET:/rest/api/2/user/columns

    secure

    Parameters

    • Optional query: { accountId?: string; username?: string }
      • Optional accountId?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<ColumnItem[]>

getUserEmail

  • description

    Returns a user's email address. This API is only available to apps approved by Atlassian, according to these guidelines.

    tags

    Users

    name

    GetUserEmail

    summary

    Get user email

    request

    GET:/rest/api/2/user/email

    secure

    Parameters

    • query: { accountId: string }
      • accountId: string
    • params: RequestParams = {}

    Returns Promise<UnrestrictedUserEmail>

getUserEmailBulk

  • description

    Returns a user's email address. This API is only available to apps approved by Atlassian, according to these guidelines.

    tags

    Users

    name

    GetUserEmailBulk

    summary

    Get user email bulk

    request

    GET:/rest/api/2/user/email/bulk

    secure

    Parameters

    • query: { accountId: string[] }
      • accountId: string[]
    • params: RequestParams = {}

    Returns Promise<UnrestrictedUserEmail>

getUserGroups

  • getUserGroups(query: { accountId: string; key?: string; username?: string }, params?: RequestParams): Promise<GroupName[]>
  • description

    Returns the groups to which a user belongs. Permissions required: Browse users and groups global permission.

    tags

    Users

    name

    GetUserGroups

    summary

    Get user groups

    request

    GET:/rest/api/2/user/groups

    secure

    Parameters

    • query: { accountId: string; key?: string; username?: string }
      • accountId: string
      • Optional key?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<GroupName[]>

getUserProperty

  • getUserProperty(propertyKey: string, query?: { accountId?: string; userKey?: string; username?: string }, params?: RequestParams): Promise<EntityProperty>
  • description

    Returns the value of a user's property. If no property key is provided Get user property keys is called. Note: This operation does not access the user properties created and maintained in Jira. Permissions required: * Administer Jira global permission, to get a property from any user. * Access to Jira, to get a property from the calling user's record.

    tags

    User properties

    name

    GetUserProperty

    summary

    Get user property

    request

    GET:/rest/api/2/user/properties/{propertyKey}

    secure

    Parameters

    • propertyKey: string
    • Optional query: { accountId?: string; userKey?: string; username?: string }
      • Optional accountId?: string
      • Optional userKey?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getUserPropertyKeys

  • getUserPropertyKeys(query?: { accountId?: string; userKey?: string; username?: string }, params?: RequestParams): Promise<PropertyKeys>
  • description

    Returns the keys of all properties for a user. Note: This operation does not access the user properties created and maintained in Jira. Permissions required: * Administer Jira global permission, to access the property keys on any user. * Access to Jira, to access the calling user's property keys.

    tags

    User properties

    name

    GetUserPropertyKeys

    summary

    Get user property keys

    request

    GET:/rest/api/2/user/properties

    secure

    Parameters

    • Optional query: { accountId?: string; userKey?: string; username?: string }
      • Optional accountId?: string
      • Optional userKey?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<PropertyKeys>

getUsersFromGroup

  • getUsersFromGroup(query: { groupname: string; includeInactiveUsers?: boolean; maxResults?: number; startAt?: number }, params?: RequestParams): Promise<PageBeanUserDetails>
  • description

    Returns a paginated list of all users in a group. Note that users are ordered by username, however the username is not returned in the results due to privacy reasons. Permissions required: Administer Jira global permission.

    tags

    Groups

    name

    GetUsersFromGroup

    summary

    Get users from group

    request

    GET:/rest/api/2/group/member

    secure

    Parameters

    • query: { groupname: string; includeInactiveUsers?: boolean; maxResults?: number; startAt?: number }
      • groupname: string
      • Optional includeInactiveUsers?: boolean
      • Optional maxResults?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanUserDetails>

getValidProjectKey

  • getValidProjectKey(query?: { key?: string }, params?: RequestParams): Promise<string>
  • description

    Validates a project key and, if the key is invalid or in use, generates a valid random string for the project key. Permissions required: None.

    tags

    Project key and name validation

    name

    GetValidProjectKey

    summary

    Get valid project key

    request

    GET:/rest/api/2/projectvalidate/validProjectKey

    secure

    Parameters

    • Optional query: { key?: string }
      • Optional key?: string
    • params: RequestParams = {}

    Returns Promise<string>

getValidProjectName

  • getValidProjectName(query: { name: string }, params?: RequestParams): Promise<string>
  • description

    Checks that a project name isn't in use. If the name isn't in use, the passed string is returned. If the name is in use, this operation attempts to generate a valid project name based on the one supplied, usually by adding a sequence number. If a valid project name cannot be generated, a 404 response is returned. Permissions required: None.

    tags

    Project key and name validation

    name

    GetValidProjectName

    summary

    Get valid project name

    request

    GET:/rest/api/2/projectvalidate/validProjectName

    secure

    Parameters

    • query: { name: string }
      • name: string
    • params: RequestParams = {}

    Returns Promise<string>

getVersion

  • description

    Returns a project version. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project containing the version.

    tags

    Project versions

    name

    GetVersion

    summary

    Get version

    request

    GET:/rest/api/2/version/{id}

    secure

    Parameters

    • id: string
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Version>

getVersionRelatedIssues

  • description

    Returns the following counts for a version: * Number of issues where the fixVersion is set to the version. * Number of issues where the affectedVersion is set to the version. * Number of issues where a version custom field is set to the version. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project that contains the version.

    tags

    Project versions

    name

    GetVersionRelatedIssues

    summary

    Get version's related issues count

    request

    GET:/rest/api/2/version/{id}/relatedIssueCounts

    secure

    Parameters

    Returns Promise<VersionIssueCounts>

getVersionUnresolvedIssues

  • description

    Returns counts of the issues and unresolved issues for the project version. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project that contains the version.

    tags

    Project versions

    name

    GetVersionUnresolvedIssues

    summary

    Get version's unresolved issues count

    request

    GET:/rest/api/2/version/{id}/unresolvedIssueCount

    secure

    Parameters

    Returns Promise<VersionUnresolvedIssuesCount>

getVisibleIssueFieldOptions

  • description

    Returns a paginated list of options for a select list issue field that can be viewed by the user. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Permission to access Jira.

    tags

    Issue custom field options (apps)

    name

    GetVisibleIssueFieldOptions

    summary

    Get visible issue field options

    request

    GET:/rest/api/2/field/{fieldKey}/option/suggestions/search

    secure

    Parameters

    • fieldKey: string
    • Optional query: { maxResults?: number; projectId?: number; startAt?: number }
      • Optional maxResults?: number
      • Optional projectId?: number
      • Optional startAt?: number
    • params: RequestParams = {}

    Returns Promise<PageBeanIssueFieldOption>

getVotes

  • description

    Returns details about the votes on an issue. This operation requires the Allow users to vote on issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is ini * If issue-level security is configured, issue-level security permission to view the issue. Note that users with the necessary permissions for this operation but without the View voters and watchers project permissions are not returned details in the voters field.

    tags

    Issue votes

    name

    GetVotes

    summary

    Get votes

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/votes

    secure

    Parameters

    Returns Promise<Votes>

getWorkflow

  • description

    Returns the workflow-issue type mappings for a workflow scheme. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    GetWorkflow

    summary

    Get issue types for workflows in workflow scheme

    request

    GET:/rest/api/2/workflowscheme/{id}/workflow

    secure

    Parameters

    • id: number
    • Optional query: { returnDraftIfExists?: boolean; workflowName?: string }
      • Optional returnDraftIfExists?: boolean
      • Optional workflowName?: string
    • params: RequestParams = {}

    Returns Promise<IssueTypesWorkflowMapping>

getWorkflowScheme

getWorkflowSchemeDraft

  • description

    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.

    tags

    Workflow scheme drafts

    name

    GetWorkflowSchemeDraft

    summary

    Get draft workflow scheme

    request

    GET:/rest/api/2/workflowscheme/{id}/draft

    secure

    Parameters

    Returns Promise<WorkflowScheme>

getWorkflowSchemeDraftIssueType

getWorkflowSchemeIssueType

  • description

    Returns the issue type-workflow mapping for an issue type in a workflow scheme. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    GetWorkflowSchemeIssueType

    summary

    Get workflow for issue type in workflow scheme

    request

    GET:/rest/api/2/workflowscheme/{id}/issuetype/{issueType}

    secure

    Parameters

    • id: number
    • issueType: string
    • Optional query: { returnDraftIfExists?: boolean }
      • Optional returnDraftIfExists?: boolean
    • params: RequestParams = {}

    Returns Promise<IssueTypeWorkflowMapping>

getWorkflowSchemeProjectAssociations

  • description

    Returns a list of the workflow schemes associated with a list of projects. Each returned workflow scheme includes a list of the requested projects associated with it. Any team-managed or non-existent projects in the request are ignored and no errors are returned. If the project is associated with the Default Workflow Scheme no ID is returned. This is because the way the Default Workflow Scheme is stored means it has no ID. Permissions required: Administer Jira global permission.

    tags

    Workflow scheme project associations

    name

    GetWorkflowSchemeProjectAssociations

    summary

    Get workflow scheme project associations

    request

    GET:/rest/api/2/workflowscheme/project

    secure

    Parameters

    • query: { projectId: number[] }
      • projectId: number[]
    • params: RequestParams = {}

    Returns Promise<ContainerOfWorkflowSchemeAssociations>

getWorkflowTransitionProperties

  • getWorkflowTransitionProperties(transitionId: number, query: { includeReservedKeys?: boolean; key?: string; workflowMode?: "live" | "draft"; workflowName: string }, params?: RequestParams): Promise<WorkflowTransitionProperty>
  • description

    Returns the properties on a workflow transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties. Permissions required: Administer Jira global permission.

    tags

    Workflow transition properties

    name

    GetWorkflowTransitionProperties

    summary

    Get workflow transition properties

    request

    GET:/rest/api/2/workflow/transitions/{transitionId}/properties

    secure

    Parameters

    • transitionId: number
    • query: { includeReservedKeys?: boolean; key?: string; workflowMode?: "live" | "draft"; workflowName: string }
      • Optional includeReservedKeys?: boolean
      • Optional key?: string
      • Optional workflowMode?: "live" | "draft"
      • workflowName: string
    • params: RequestParams = {}

    Returns Promise<WorkflowTransitionProperty>

getWorkflowTransitionRuleConfigurations

  • getWorkflowTransitionRuleConfigurations(query: { draft?: boolean; expand?: string; keys?: string[]; maxResults?: number; startAt?: number; types: ("postfunction" | "condition" | "validator")[]; withTags?: string[]; workflowNames?: string[] }, params?: RequestParams): Promise<PageBeanWorkflowTransitionRules>
  • description

    Returns a paginated list of workflows with transition rules. The workflows can be filtered to return only those containing workflow transition rules: * of one or more transition rule types, such as workflow post functions. * matching one or more transition rule keys. Only workflows containing transition rules created by the calling Connect app are returned. However, if a workflow is returned all transition rules that match the filters are returned for that workflow. Due to server-side optimizations, workflows with an empty list of rules may be returned; these workflows can be ignored. Permissions required: Only Connect apps can use this operation.

    tags

    Workflow transition rules

    name

    GetWorkflowTransitionRuleConfigurations

    summary

    Get workflow transition rule configurations

    request

    GET:/rest/api/2/workflow/rule/config

    secure

    Parameters

    • query: { draft?: boolean; expand?: string; keys?: string[]; maxResults?: number; startAt?: number; types: ("postfunction" | "condition" | "validator")[]; withTags?: string[]; workflowNames?: string[] }
      • Optional draft?: boolean
      • Optional expand?: string
      • Optional keys?: string[]
      • Optional maxResults?: number
      • Optional startAt?: number
      • types: ("postfunction" | "condition" | "validator")[]
      • Optional withTags?: string[]
      • Optional workflowNames?: string[]
    • params: RequestParams = {}

    Returns Promise<PageBeanWorkflowTransitionRules>

getWorkflowsPaginated

  • getWorkflowsPaginated(query?: { expand?: string; maxResults?: number; startAt?: number; workflowName?: string[] }, params?: RequestParams): Promise<PageBeanWorkflow>
  • description

    Returns a paginated list of published classic workflows. When workflow names are specified, details of those workflows are returned. Otherwise, all published classic workflows are returned. This operation does not return next-gen workflows. Permissions required: Administer Jira global permission.

    tags

    Workflows

    name

    GetWorkflowsPaginated

    summary

    Get workflows paginated

    request

    GET:/rest/api/2/workflow/search

    secure

    Parameters

    • Optional query: { expand?: string; maxResults?: number; startAt?: number; workflowName?: string[] }
      • Optional expand?: string
      • Optional maxResults?: number
      • Optional startAt?: number
      • Optional workflowName?: string[]
    • params: RequestParams = {}

    Returns Promise<PageBeanWorkflow>

getWorklog

  • getWorklog(issueIdOrKey: string, id: string, query?: { expand?: string }, params?: RequestParams): Promise<Worklog>
  • description

    Returns a worklog. Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklogs

    name

    GetWorklog

    summary

    Get worklog

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/worklog/{id}

    secure

    Parameters

    • issueIdOrKey: string
    • id: string
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Worklog>

getWorklogProperty

  • description

    Returns the value of a worklog property. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklog properties

    name

    GetWorklogProperty

    summary

    Get worklog property

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • worklogId: string
    • propertyKey: string
    • params: RequestParams = {}

    Returns Promise<EntityProperty>

getWorklogPropertyKeys

  • description

    Returns the keys of all properties for a worklog. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklog properties

    name

    GetWorklogPropertyKeys

    summary

    Get worklog property keys

    request

    GET:/rest/api/2/issue/{issueIdOrKey}/worklog/{worklogId}/properties

    secure

    Parameters

    • issueIdOrKey: string
    • worklogId: string
    • params: RequestParams = {}

    Returns Promise<PropertyKeys>

getWorklogsForIds

  • description

    Returns worklog details for a list of worklog IDs. The returned list of worklogs is limited to 1000 items. Permissions required: Permission to access Jira, however, worklogs are only returned where either of the following is true: * the worklog is set as Viewable by All Users. * the user is a member of a project role or group with permission to view the worklog.

    tags

    Issue worklogs

    name

    GetWorklogsForIds

    summary

    Get worklogs

    request

    POST:/rest/api/2/worklog/list

    secure

    Parameters

    Returns Promise<Worklog[]>

linkIssues

  • description

    Creates a link between two issues. Use this operation to indicate a relationship between two issues and optionally add a comment to the from (outward) issue. To use this resource the site must have Issue Linking enabled. This resource returns nothing on the creation of an issue link. To obtain the ID of the issue link, use https://your-domain.atlassian.net/rest/api/2/issue/[linked issue key]?fields=issuelinks. If the link request duplicates a link, the response indicates that the issue link was created. If the request included a comment, the comment is added. This operation can be accessed anonymously. Permissions required: * Browse project project permission for all the projects containing the issues to be linked, * Link issues project permission on the project containing the from (outward) issue, * If issue-level security is configured, issue-level security permission to view the issue. * If the comment has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue links

    name

    LinkIssues

    summary

    Create issue link

    request

    POST:/rest/api/2/issueLink

    secure

    Parameters

    Returns Promise<any>

matchIssues

mergeVersions

  • mergeVersions(id: string, moveIssuesTo: string, params?: RequestParams): Promise<any>
  • description

    Merges two project versions. The merge is completed by deleting the version specified in id and replacing any occurrences of its ID in fixVersion with the version ID specified in moveIssuesTo. Consider using Delete and replace version instead. This resource supports swapping version values in fixVersion, affectedVersion, and custom fields. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer Projects project permission for the project that contains the version.

    tags

    Project versions

    name

    MergeVersions

    summary

    Merge versions

    request

    PUT:/rest/api/2/version/{id}/mergeto/{moveIssuesTo}

    secure

    Parameters

    Returns Promise<any>

migrateQueries

  • description

    Converts one or more JQL queries with user identifiers (username or user key) to equivalent JQL queries with account IDs. You may wish to use this operation if your system stores JQL queries and you want to make them GDPR-compliant. For more information about GDPR-related changes, see the migration guide. Permissions required: Permission to access Jira.

    tags

    JQL

    name

    MigrateQueries

    summary

    Convert user identifiers to account IDs in JQL queries

    request

    POST:/rest/api/2/jql/pdcleaner

    secure

    Parameters

    Returns Promise<ConvertedJQLQueries>

migrationResourceUpdateEntityPropertiesValuePut

  • migrationResourceUpdateEntityPropertiesValuePut(entityType: "IssueProperty" | "CommentProperty" | "DashboardItemProperty" | "IssueTypeProperty" | "ProjectProperty" | "UserProperty" | "WorklogProperty" | "BoardProperty" | "SprintProperty", data: EntityPropertyDetails[], params?: RequestParams): Promise<void>
  • description

    Updates the values of multiple entity properties for an object, up to 50 updates per request. This operation is for use by Connect apps during app migration.

    tags

    App migration

    name

    MigrationResourceUpdateEntityPropertiesValuePut

    summary

    Bulk update entity properties

    request

    PUT:/rest/atlassian-connect/1/migration/properties/{entityType}

    Parameters

    • entityType: "IssueProperty" | "CommentProperty" | "DashboardItemProperty" | "IssueTypeProperty" | "ProjectProperty" | "UserProperty" | "WorklogProperty" | "BoardProperty" | "SprintProperty"
    • data: EntityPropertyDetails[]
    • params: RequestParams = {}

    Returns Promise<void>

migrationResourceWorkflowRuleSearchPost

moveScreenTab

  • moveScreenTab(screenId: number, tabId: number, pos: number, params?: RequestParams): Promise<any>
  • description

    Moves a screen tab. Permissions required: Administer Jira global permission.

    tags

    Screen tabs

    name

    MoveScreenTab

    summary

    Move screen tab

    request

    POST:/rest/api/2/screens/{screenId}/tabs/{tabId}/move/{pos}

    secure

    Parameters

    • screenId: number
    • tabId: number
    • pos: number
    • params: RequestParams = {}

    Returns Promise<any>

moveScreenTabField

  • description

    Moves a screen tab field. If after and position are provided in the request, position is ignored. Permissions required: Administer Jira global permission.

    tags

    Screen tab fields

    name

    MoveScreenTabField

    summary

    Move screen tab field

    request

    POST:/rest/api/2/screens/{screenId}/tabs/{tabId}/fields/{id}/move

    secure

    Parameters

    Returns Promise<any>

moveVersion

  • description

    Modifies the version's sequence within the project, which affects the display order of the versions in Jira. This operation can be accessed anonymously. Permissions required: Browse projects project permission for the project that contains the version.

    tags

    Project versions

    name

    MoveVersion

    summary

    Move version

    request

    POST:/rest/api/2/version/{id}/move

    secure

    Parameters

    Returns Promise<Version>

notify

  • description

    Creates an email notification for an issue and adds it to the mail queue. Permissions required: * Browse Projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issues

    name

    Notify

    summary

    Send notification for issue

    request

    POST:/rest/api/2/issue/{issueIdOrKey}/notify

    secure

    Parameters

    Returns Promise<any>

parseJqlQueries

  • description

    Parses and validates JQL queries. Validation is performed in context of the current user. This operation can be accessed anonymously. Permissions required: None.

    tags

    JQL

    name

    ParseJqlQueries

    summary

    Parse JQL query

    request

    POST:/rest/api/2/jql/parse

    secure

    Parameters

    • data: JqlQueriesToParse
    • Optional query: { validation?: "strict" | "warn" | "none" }
      • Optional validation?: "strict" | "warn" | "none"
    • params: RequestParams = {}

    Returns Promise<ParsedJqlQueries>

partialUpdateProjectRole

publishDraftWorkflowScheme

  • description

    Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain updates. Permissions required: Administer Jira global permission.

    tags

    Workflow scheme drafts

    name

    PublishDraftWorkflowScheme

    summary

    Publish draft workflow scheme

    request

    POST:/rest/api/2/workflowscheme/{id}/draft/publish

    secure

    Parameters

    Returns Promise<void>

refreshWebhooks

registerDynamicWebhooks

removeAttachment

  • removeAttachment(id: string, params?: RequestParams): Promise<void>
  • description

    Deletes an attachment from an issue. This operation can be accessed anonymously. Permissions required: For the project holding the issue containing the attachment: * Delete own attachments project permission to delete an attachment created by the calling user. * Delete all attachments project permission to delete an attachment created by any user.

    tags

    Issue attachments

    name

    RemoveAttachment

    summary

    Delete attachment

    request

    DELETE:/rest/api/2/attachment/{id}

    secure

    Parameters

    Returns Promise<void>

removeCustomFieldContextFromProjects

  • removeCustomFieldContextFromProjects(fieldId: string, contextId: number, data: ProjectIds, params?: RequestParams): Promise<any>
  • description

    Removes a custom field context from projects. A custom field context without any projects applies to all projects. Removing all projects from a custom field context would result in it applying to all projects. If any project in the request is not assigned to the context, or the operation would result in two global contexts for the field, the operation fails. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    RemoveCustomFieldContextFromProjects

    summary

    Remove custom field context from projects

    request

    POST:/rest/api/2/field/{fieldId}/context/{contextId}/project/remove

    secure

    Parameters

    Returns Promise<any>

removeGroup

  • removeGroup(query: { groupname: string; swapGroup?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a group. Permissions required: Site administration (that is, member of the site-admin strategic group).

    tags

    Groups

    name

    RemoveGroup

    summary

    Remove group

    request

    DELETE:/rest/api/2/group

    secure

    Parameters

    • query: { groupname: string; swapGroup?: string }
      • groupname: string
      • Optional swapGroup?: string
    • params: RequestParams = {}

    Returns Promise<void>

removeIssueTypeFromIssueTypeScheme

  • removeIssueTypeFromIssueTypeScheme(issueTypeSchemeId: number, issueTypeId: number, params?: RequestParams): Promise<any>
  • description

    Removes an issue type from an issue type scheme. This operation cannot remove: * any issue type used by issues. * any issue types from the default issue type scheme. * the last standard issue type from an issue type scheme. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    RemoveIssueTypeFromIssueTypeScheme

    summary

    Remove issue type from issue type scheme

    request

    DELETE:/rest/api/2/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}

    secure

    Parameters

    • issueTypeSchemeId: number
    • issueTypeId: number
    • params: RequestParams = {}

    Returns Promise<any>

removeIssueTypesFromContext

  • description

    Removes issue types from a custom field context. A custom field context without any issue types applies to all issue types. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    RemoveIssueTypesFromContext

    summary

    Remove issue types from context

    request

    POST:/rest/api/2/field/{fieldId}/context/{contextId}/issuetype/remove

    secure

    Parameters

    Returns Promise<any>

removeMappingsFromIssueTypeScreenScheme

  • removeMappingsFromIssueTypeScreenScheme(issueTypeScreenSchemeId: string, data: IssueTypeIds, params?: RequestParams): Promise<any>
  • description

    Removes issue type to screen scheme mappings from an issue type screen scheme. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    RemoveMappingsFromIssueTypeScreenScheme

    summary

    Remove mappings from issue type screen scheme

    request

    POST:/rest/api/2/issuetypescreenscheme/{issueTypeScreenSchemeId}/mapping/remove

    secure

    Parameters

    Returns Promise<any>

removePreference

  • removePreference(query: { key: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a preference of the user, which restores the default value of system defined settings. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default, not set. The user takes the instance locale. * jira.user.timezone The time zone of the user. By default, not set. The user takes the instance timezone. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    RemovePreference

    summary

    Delete preference

    request

    DELETE:/rest/api/2/mypreferences

    secure

    Parameters

    Returns Promise<void>

removeProjectCategory

  • removeProjectCategory(id: number, params?: RequestParams): Promise<void>

removeScreenTabField

  • removeScreenTabField(screenId: number, tabId: number, id: string, params?: RequestParams): Promise<void>
  • description

    Removes a field from a screen tab. Permissions required: Administer Jira global permission.

    tags

    Screen tab fields

    name

    RemoveScreenTabField

    summary

    Remove screen tab field

    request

    DELETE:/rest/api/2/screens/{screenId}/tabs/{tabId}/fields/{id}

    secure

    Parameters

    • screenId: number
    • tabId: number
    • id: string
    • params: RequestParams = {}

    Returns Promise<void>

removeUser

  • removeUser(query: { accountId: string; key?: string; username?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a user. Permissions required: Site administration (that is, membership of the site-admin group).

    tags

    Users

    name

    RemoveUser

    summary

    Delete user

    request

    DELETE:/rest/api/2/user

    secure

    Parameters

    • query: { accountId: string; key?: string; username?: string }
      • accountId: string
      • Optional key?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<void>

removeUserFromGroup

  • removeUserFromGroup(query: { accountId: string; groupname: string; username?: string }, params?: RequestParams): Promise<void>
  • description

    Removes a user from a group. Permissions required: Site administration (that is, member of the site-admin group).

    tags

    Groups

    name

    RemoveUserFromGroup

    summary

    Remove user from group

    request

    DELETE:/rest/api/2/group/user

    secure

    Parameters

    • query: { accountId: string; groupname: string; username?: string }
      • accountId: string
      • groupname: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<void>

removeVote

  • removeVote(issueIdOrKey: string, params?: RequestParams): Promise<void>
  • description

    Deletes a user's vote from an issue. This is the equivalent of the user clicking Unvote on an issue in Jira. This operation requires the Allow users to vote on issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue votes

    name

    RemoveVote

    summary

    Delete vote

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/votes

    secure

    Parameters

    Returns Promise<void>

removeWatcher

  • removeWatcher(issueIdOrKey: string, query?: { accountId?: string; username?: string }, params?: RequestParams): Promise<void>
  • description

    Deletes a user as a watcher of an issue. This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * To remove users other than themselves from the watchlist, Manage watcher list project permission for the project that the issue is in.

    tags

    Issue watchers

    name

    RemoveWatcher

    summary

    Delete watcher

    request

    DELETE:/rest/api/2/issue/{issueIdOrKey}/watchers

    secure

    Parameters

    • issueIdOrKey: string
    • Optional query: { accountId?: string; username?: string }
      • Optional accountId?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<void>

renameScreenTab

reorderCustomFieldOptions

  • description

    Changes the order of custom field options or cascading options in a context. This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations. Permissions required: Administer Jira global permission.

    tags

    Issue custom field options

    name

    ReorderCustomFieldOptions

    summary

    Reorder custom field options (context)

    request

    PUT:/rest/api/2/field/{fieldId}/context/{contextId}/option/move

    secure

    Parameters

    Returns Promise<any>

reorderIssueTypesInIssueTypeScheme

  • description

    Changes the order of issue types in an issue type scheme. The request body parameters must meet the following requirements: * all of the issue types must belong to the issue type scheme. * either after or position must be provided. * the issue type in after must not be in the issue type list. Permissions required: Administer Jira global permission.

    tags

    Issue type schemes

    name

    ReorderIssueTypesInIssueTypeScheme

    summary

    Change order of issue types

    request

    PUT:/rest/api/2/issuetypescheme/{issueTypeSchemeId}/issuetype/move

    secure

    Parameters

    Returns Promise<any>

replaceIssueFieldOption

  • replaceIssueFieldOption(fieldKey: string, optionId: number, query?: { jql?: string; overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean; replaceWith?: number }, params?: RequestParams): Promise<any>
  • description

    Deselects an issue-field select-list option from all issues where it is selected. A different option can be selected to replace the deselected option. The update can also be limited to a smaller set of issues by using a JQL query. Connect app users with admin permissions (from user permissions and app scopes) and Forge app users with the manage:jira-configuration scope can override the screen security configuration using overrideScreenSecurity and overrideEditableFlag. This is an asynchronous operation. The response object contains a link to the long-running task. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    ReplaceIssueFieldOption

    summary

    Replace issue field option

    request

    DELETE:/rest/api/2/field/{fieldKey}/option/{optionId}/issue

    secure

    Parameters

    • fieldKey: string
    • optionId: number
    • Optional query: { jql?: string; overrideEditableFlag?: boolean; overrideScreenSecurity?: boolean; replaceWith?: number }
      • Optional jql?: string
      • Optional overrideEditableFlag?: boolean
      • Optional overrideScreenSecurity?: boolean
      • Optional replaceWith?: number
    • params: RequestParams = {}

    Returns Promise<any>

request

resetColumns

  • resetColumns(id: number, params?: RequestParams): Promise<void>
  • description

    Reset the user's column configuration for the filter to the default. Permissions required: Permission to access Jira, however, columns are only reset for: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    ResetColumns

    summary

    Reset columns

    request

    DELETE:/rest/api/2/filter/{id}/columns

    secure

    Parameters

    Returns Promise<void>

resetUserColumns

  • resetUserColumns(query?: { accountId?: string; username?: string }, params?: RequestParams): Promise<void>
  • description

    Resets the default issue table columns for the user to the system default. If accountId is not passed, the calling user's default columns are reset. Permissions required: * Administer Jira global permission, to set the columns on any user. * Permission to access Jira, to set the calling user's columns.

    tags

    Users

    name

    ResetUserColumns

    summary

    Reset user default columns

    request

    DELETE:/rest/api/2/user/columns

    secure

    Parameters

    • Optional query: { accountId?: string; username?: string }
      • Optional accountId?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<void>

restore

restoreCustomField

  • restoreCustomField(id: string, params?: RequestParams): Promise<any>

searchForIssuesUsingJql

  • searchForIssuesUsingJql(query?: { expand?: string; fields?: string[]; fieldsByKeys?: boolean; jql?: string; maxResults?: number; properties?: string[]; startAt?: number; validateQuery?: "true" | "false" | "strict" | "warn" | "none" }, params?: RequestParams): Promise<SearchResults>
  • description

    Searches for issues using JQL. If the JQL query expression is too large to be encoded as a query parameter, use the POST version of this resource. This operation can be accessed anonymously. Permissions required: Issues are included in the response where the user has: * Browse projects project permission for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue search

    name

    SearchForIssuesUsingJql

    summary

    Search for issues using JQL (GET)

    request

    GET:/rest/api/2/search

    secure

    Parameters

    • Optional query: { expand?: string; fields?: string[]; fieldsByKeys?: boolean; jql?: string; maxResults?: number; properties?: string[]; startAt?: number; validateQuery?: "true" | "false" | "strict" | "warn" | "none" }
      • Optional expand?: string
      • Optional fields?: string[]
      • Optional fieldsByKeys?: boolean
      • Optional jql?: string
      • Optional maxResults?: number
      • Optional properties?: string[]
      • Optional startAt?: number
      • Optional validateQuery?: "true" | "false" | "strict" | "warn" | "none"
    • params: RequestParams = {}

    Returns Promise<SearchResults>

searchForIssuesUsingJqlPost

searchProjects

  • searchProjects(query?: { action?: "view" | "browse" | "edit"; categoryId?: number; expand?: string; id?: number[]; keys?: string[]; maxResults?: number; orderBy?: "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "category" | "-category" | "+category" | "key" | "-key" | "+key" | "issueCount" | "-issueCount" | "+issueCount" | "lastIssueUpdatedDate" | "-lastIssueUpdatedDate" | "+lastIssueUpdatedDate" | "archivedDate" | "+archivedDate" | "-archivedDate" | "deletedDate" | "+deletedDate" | "-deletedDate"; properties?: object[]; propertyQuery?: string; query?: string; startAt?: number; status?: ("live" | "archived" | "deleted")[]; typeKey?: string }, params?: RequestParams): Promise<PageBeanProject>
  • description

    Returns a paginated list of projects visible to the user. This operation can be accessed anonymously. Permissions required: Projects are returned only where the user has one of: * Browse Projects project permission for the project. * Administer Projects project permission for the project. * Administer Jira global permission.

    tags

    Projects

    name

    SearchProjects

    summary

    Get projects paginated

    request

    GET:/rest/api/2/project/search

    secure

    Parameters

    • Optional query: { action?: "view" | "browse" | "edit"; categoryId?: number; expand?: string; id?: number[]; keys?: string[]; maxResults?: number; orderBy?: "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "category" | "-category" | "+category" | "key" | "-key" | "+key" | "issueCount" | "-issueCount" | "+issueCount" | "lastIssueUpdatedDate" | "-lastIssueUpdatedDate" | "+lastIssueUpdatedDate" | "archivedDate" | "+archivedDate" | "-archivedDate" | "deletedDate" | "+deletedDate" | "-deletedDate"; properties?: object[]; propertyQuery?: string; query?: string; startAt?: number; status?: ("live" | "archived" | "deleted")[]; typeKey?: string }
      • Optional action?: "view" | "browse" | "edit"
      • Optional categoryId?: number
      • Optional expand?: string
      • Optional id?: number[]
      • Optional keys?: string[]
      • Optional maxResults?: number
      • Optional orderBy?: "name" | "-name" | "+name" | "owner" | "-owner" | "+owner" | "category" | "-category" | "+category" | "key" | "-key" | "+key" | "issueCount" | "-issueCount" | "+issueCount" | "lastIssueUpdatedDate" | "-lastIssueUpdatedDate" | "+lastIssueUpdatedDate" | "archivedDate" | "+archivedDate" | "-archivedDate" | "deletedDate" | "+deletedDate" | "-deletedDate"
      • Optional properties?: object[]
      • Optional propertyQuery?: string
      • Optional query?: string
      • Optional startAt?: number
      • Optional status?: ("live" | "archived" | "deleted")[]
      • Optional typeKey?: string
    • params: RequestParams = {}

    Returns Promise<PageBeanProject>

selectTimeTrackingImplementation

setActors

setApplicationProperty

  • description

    Changes the value of an application property. For example, you can change the value of the jira.clone.prefix from its default value of CLONE - to Clone - if you prefer sentence case capitalization. Editable properties are described below along with their default values. #### Advanced settings #### The advanced settings below are also accessible in Jira. | Key | Description | Default value | | -- | -- | -- | | jira.clone.prefix | The string of text prefixed to the title of a cloned issue. | CLONE - | | jira.date.picker.java.format | The date format for the Java (server-side) generated dates. This must be the same as the jira.date.picker.javascript.format format setting. | d/MMM/yy | | jira.date.picker.javascript.format | The date format for the JavaScript (client-side) generated dates. This must be the same as the jira.date.picker.java.format format setting. | %e/%b/%y | | jira.date.time.picker.java.format | The date format for the Java (server-side) generated date times. This must be the same as the jira.date.time.picker.javascript.format format setting. | dd/MMM/yy h:mm a | | jira.date.time.picker.javascript.format | The date format for the JavaScript (client-side) generated date times. This must be the same as the jira.date.time.picker.java.format format setting. | %e/%b/%y %I:%M %p | | jira.issue.actions.order | The default order of actions (such as Comments or Change history) displayed on the issue view. | asc | | jira.table.cols.subtasks | The columns to show while viewing subtask issues in a table. For example, a list of subtasks on an issue. | issuetype, status, assignee, progress | | jira.view.issue.links.sort.order | The sort order of the list of issue links on the issue view. | type, status, priority | | jira.comment.collapsing.minimum.hidden | The minimum number of comments required for comment collapsing to occur. A value of 0 disables comment collapsing. | 4 | | jira.newsletter.tip.delay.days | The number of days before a prompt to sign up to the Jira Insiders newsletter is shown. A value of -1 disables this feature. | 7 | #### Look and feel #### The settings listed below adjust the look and feel. | Key | Description | Default value | | -- | -- | -- | | jira.lf.date.time | The time format. | h:mm a | | jira.lf.date.day | The day format. | EEEE h:mm a | | jira.lf.date.complete | The date and time format. | dd/MMM/yy h:mm a | | jira.lf.date.dmy | The date format. | dd/MMM/yy | | jira.date.time.picker.use.iso8061 | When enabled, sets Monday as the first day of the week in the date picker, as specified by the ISO8601 standard. | false | | jira.lf.logo.url | The URL of the logo image file. | /images/icon-jira-logo.png | | jira.lf.logo.show.application.title | Controls the visibility of the application title on the sidebar. | false | | jira.lf.favicon.url | The URL of the favicon. | /favicon.ico | | jira.lf.favicon.hires.url | The URL of the high-resolution favicon. | /images/64jira.png | | jira.lf.navigation.bgcolour | The background color of the sidebar. | #0747A6 | | jira.lf.navigation.highlightcolour | The color of the text and logo of the sidebar. | #DEEBFF | | jira.lf.hero.button.base.bg.colour | The background color of the hero button. | #3b7fc4 | | jira.title | The text for the application title. The application title can also be set in General settings. | Jira | | jira.option.globalsharing | Whether filters and dashboards can be shared with anyone signed into Jira. | true | | xflow.product.suggestions.enabled | Whether to expose product suggestions for other Atlassian products within Jira. | true | #### Other settings #### | Key | Description | Default value | | -- | -- | -- | | jira.issuenav.criteria.autoupdate | Whether instant updates to search criteria is active. | true | Note: Be careful when changing application properties and advanced settings. Permissions required: Administer Jira global permission.

    tags

    Jira settings

    name

    SetApplicationProperty

    summary

    Set application property

    request

    PUT:/rest/api/2/application-properties/{id}

    secure

    Parameters

    Returns Promise<ApplicationProperty>

setColumns

  • setColumns(id: number, data: string[], params?: RequestParams): Promise<any>
  • description

    Sets the columns for a filter. Only navigable fields can be set as columns. Use Get fields to get the list fields in Jira. A navigable field has navigable set to true. The parameters for this resource are expressed as HTML form data. For example, in curl: curl -X PUT -d columns=summary -d columns=description https://your-domain.atlassian.net/rest/api/2/filter/10000/columns Permissions required: Permission to access Jira, however, columns are only set for: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    SetColumns

    summary

    Set columns

    request

    PUT:/rest/api/2/filter/{id}/columns

    secure

    Parameters

    Returns Promise<any>

setCommentProperty

  • setCommentProperty(commentId: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Creates or updates the value of a property for a comment. Use this resource to store custom data against a comment. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. Permissions required: either of: * Edit All Comments project permission to create or update the value of a property on any comment. * Edit Own Comments project permission to create or update the value of a property on a comment created by the user. Also, when the visibility of a comment is restricted to a role or group the user must be a member of that role or group.

    tags

    Issue comment properties

    name

    SetCommentProperty

    summary

    Set comment property

    request

    PUT:/rest/api/2/comment/{commentId}/properties/{propertyKey}

    secure

    Parameters

    • commentId: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

setDashboardItemProperty

  • setDashboardItemProperty(dashboardId: string, itemId: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Sets the value of a dashboard item property. Use this resource in apps to store custom data against a dashboard item. A dashboard item enables an app to add user-specific information to a user dashboard. Dashboard items are exposed to users as gadgets that users can add to their dashboards. For more information on how users do this, see Adding and customizing gadgets. When an app creates a dashboard item it registers a callback to receive the dashboard item ID. The callback fires whenever the item is rendered or, where the item is configurable, the user edits the item. The app then uses this resource to store the item's content or configuration details. For more information on working with dashboard items, see Building a dashboard item for a JIRA Connect add-on and the Dashboard Item documentation. There is no resource to set or get dashboard items. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. This operation can be accessed anonymously. Permissions required: The user must be the owner of the dashboard. Note, users with the Administer Jira global permission are considered owners of the System dashboard.

    tags

    Dashboards

    name

    SetDashboardItemProperty

    summary

    Set dashboard item property

    request

    PUT:/rest/api/2/dashboard/{dashboardId}/items/{itemId}/properties/{propertyKey}

    secure

    Parameters

    • dashboardId: string
    • itemId: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

setDefaultShareScope

setDefaultValues

  • description

    Sets default for contexts of a custom field. Default are defined using these objects: * CustomFieldContextDefaultValueDate (type datepicker) for date fields. * CustomFieldContextDefaultValueDateTime (type datetimepicker) for date-time fields. * CustomFieldContextDefaultValueSingleOption (type option.single) for single choice select lists and radio buttons. * CustomFieldContextDefaultValueMultipleOption (type option.multiple) for multiple choice select lists and checkboxes. * CustomFieldContextDefaultValueCascadingOption (type option.cascading) for cascading select lists. * CustomFieldContextSingleUserPickerDefaults (type single.user.select) for single users. * CustomFieldContextDefaultValueMultiUserPicker (type multi.user.select) for user lists. * CustomFieldContextDefaultValueSingleGroupPicker (type grouppicker.single) for single choice group picker. * CustomFieldContextDefaultValueMultipleGroupPicker (type grouppicker.multiple) for multiple choice group picker. * CustomFieldContextDefaultValueURL (type url) for URL. * CustomFieldContextDefaultValueProject (type project) for project picker. * CustomFieldContextDefaultValueFloat (type float) for float (a floating-point number). * CustomFieldContextDefaultValueLabels (type labels) for labels. * CustomFieldContextDefaultValueTextField (type textfield) for text field. * CustomFieldContextDefaultValueTextArea (type textarea) for text area field. * CustomFieldContextDefaultValueReadOnly (type readonly) for read only (text) field. * CustomFieldContextDefaultValueMultipleVersion (type version.multiple) for single choice version picker. * CustomFieldContextDefaultValueSingleVersion (type version.single) for multiple choice version picker. Only one type of default object can be included in a request. To remove a default for a context, set the default parameter to null. Permissions required: Administer Jira global permission.

    tags

    Issue custom field contexts

    name

    SetDefaultValues

    summary

    Set custom field contexts default values

    request

    PUT:/rest/api/2/field/{fieldId}/context/defaultValue

    secure

    Parameters

    Returns Promise<any>

setFavouriteForFilter

  • setFavouriteForFilter(id: number, query?: { expand?: string }, params?: RequestParams): Promise<Filter>
  • description

    Add a filter as a favorite for the user. Permissions required: Permission to access Jira, however, the user can only favorite: * filters owned by the user. * filters shared with a group that the user is a member of. * filters shared with a private project that the user has Browse projects project permission for. * filters shared with a public project. * filters shared with the public.

    tags

    Filters

    name

    SetFavouriteForFilter

    summary

    Add filter as favorite

    request

    PUT:/rest/api/2/filter/{id}/favourite

    secure

    Parameters

    • id: number
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter>

setFieldConfigurationSchemeMapping

setIssueNavigatorDefaultColumns

  • setIssueNavigatorDefaultColumns(data: string[], params?: RequestParams): Promise<any>
  • description

    Sets the default issue navigator columns. The columns parameter accepts a navigable field value and is expressed as HTML form data. To specify multiple columns, pass multiple columns parameters. For example, in curl: curl -X PUT -d columns=summary -d columns=description https://your-domain.atlassian.net/rest/api/2/settings/columns If no column details are sent, then all default columns are removed. A navigable field is one that can be used as a column on the issue navigator. Find details of navigable issue columns using Get fields. Permissions required: Administer Jira global permission.

    tags

    Issue navigator settings

    name

    SetIssueNavigatorDefaultColumns

    summary

    Set issue navigator default columns

    request

    PUT:/rest/api/2/settings/columns

    secure

    Parameters

    Returns Promise<any>

setIssueProperty

  • setIssueProperty(issueIdOrKey: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Sets the value of an issue's property. Use this resource to store custom data against an issue. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. This operation can be accessed anonymously. Permissions required: * Browse projects and Edit issues project permissions for the project containing the issue. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue properties

    name

    SetIssueProperty

    summary

    Set issue property

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

setIssueTypeProperty

  • setIssueTypeProperty(issueTypeId: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Creates or updates the value of the issue type property. Use this resource to store and update data against an issue type. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. Permissions required: Administer Jira global permission.

    tags

    Issue type properties

    name

    SetIssueTypeProperty

    summary

    Set issue type property

    request

    PUT:/rest/api/2/issuetype/{issueTypeId}/properties/{propertyKey}

    secure

    Parameters

    • issueTypeId: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

setLocale

  • description

    Deprecated, use Update a user profile from the user management REST API instead. Sets the locale of the user. The locale must be one supported by the instance of Jira. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    SetLocale

    summary

    Set locale

    request

    PUT:/rest/api/2/mypreferences/locale

    deprecated
    secure

    Parameters

    Returns Promise<any>

setPreference

  • setPreference(query: { key: string }, data: string, params?: RequestParams): Promise<any>
  • description

    Creates a preference for the user or updates a preference's value by sending a plain text string. For example, false. An arbitrary preference can be created with the value containing up to 255 characters. In addition, the following keys define system preferences that can be set or created: * user.notifications.mimetype The mime type used in notifications sent to the user. Defaults to html. * user.notify.own.changes Whether the user gets notified of their own changes. Defaults to false. * user.default.share.private Whether new filters are set to private. Defaults to true. * user.keyboard.shortcuts.disabled Whether keyboard shortcuts are disabled. Defaults to false. * user.autowatch.disabled Whether the user automatically watches issues they create or add a comment to. By default, not set: the user takes the instance autowatch setting. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default, not set. The user takes the instance locale. * jira.user.timezone The time zone of the user. By default, not set. The user takes the instance timezone. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.

    tags

    Myself

    name

    SetPreference

    summary

    Set preference

    request

    PUT:/rest/api/2/mypreferences

    secure

    Parameters

    • query: { key: string }
      • key: string
    • data: string
    • params: RequestParams = {}

    Returns Promise<any>

setProjectProperty

  • setProjectProperty(projectIdOrKey: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Sets the value of the project property. You can use project properties to store custom data against the project. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. This operation can be accessed anonymously. Permissions required: Administer Jira global permission or Administer Projects project permission for the project in which the property is created.

    tags

    Project properties

    name

    SetProjectProperty

    summary

    Set project property

    request

    PUT:/rest/api/2/project/{projectIdOrKey}/properties/{propertyKey}

    secure

    Parameters

    • projectIdOrKey: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

setSharedTimeTrackingConfiguration

setUserColumns

  • setUserColumns(data: string[], query?: { accountId?: string }, params?: RequestParams): Promise<any>
  • description

    Sets the default issue table columns for the user. If an account ID is not passed, the calling user's default columns are set. If no column details are sent, then all default columns are removed. The parameters for this resource are expressed as HTML form data. For example, in curl: curl -X PUT -d columns=summary -d columns=description https://your-domain.atlassian.net/rest/api/2/user/columns?accountId=5b10ac8d82e05b22cc7d4ef5' Permissions required: * Administer Jira global permission, to set the columns on any user. * Permission to access Jira, to set the calling user's columns.

    tags

    Users

    name

    SetUserColumns

    summary

    Set user default columns

    request

    PUT:/rest/api/2/user/columns

    secure

    Parameters

    • data: string[]
    • Optional query: { accountId?: string }
      • Optional accountId?: string
    • params: RequestParams = {}

    Returns Promise<any>

setUserProperty

  • setUserProperty(propertyKey: string, data: any, query?: { accountId?: string; userKey?: string; username?: string }, params?: RequestParams): Promise<any>
  • description

    Sets the value of a user's property. Use this resource to store custom data against a user. Note: This operation does not access the user properties created and maintained in Jira. Permissions required: * Administer Jira global permission, to set a property on any user. * Access to Jira, to set a property on the calling user's record.

    tags

    User properties

    name

    SetUserProperty

    summary

    Set user property

    request

    PUT:/rest/api/2/user/properties/{propertyKey}

    secure

    Parameters

    • propertyKey: string
    • data: any
    • Optional query: { accountId?: string; userKey?: string; username?: string }
      • Optional accountId?: string
      • Optional userKey?: string
      • Optional username?: string
    • params: RequestParams = {}

    Returns Promise<any>

setWorkflowSchemeDraftIssueType

setWorkflowSchemeIssueType

  • description

    Sets the workflow for an issue type in a workflow scheme. Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    SetWorkflowSchemeIssueType

    summary

    Set workflow for issue type in workflow scheme

    request

    PUT:/rest/api/2/workflowscheme/{id}/issuetype/{issueType}

    secure

    Parameters

    Returns Promise<WorkflowScheme>

setWorklogProperty

  • setWorklogProperty(issueIdOrKey: string, worklogId: string, propertyKey: string, data: any, params?: RequestParams): Promise<any>
  • description

    Sets the value of a worklog property. Use this operation to store custom data against the worklog. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * Edit all worklogs project permission to update any worklog or Edit own worklogs to update worklogs created by the user. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklog properties

    name

    SetWorklogProperty

    summary

    Set worklog property

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey}

    secure

    Parameters

    • issueIdOrKey: string
    • worklogId: string
    • propertyKey: string
    • data: any
    • params: RequestParams = {}

    Returns Promise<any>

storeAvatar

  • storeAvatar(type: "issuetype" | "project", entityId: string, query: { size: number; x?: number; y?: number }, data: any, params?: RequestParams): Promise<Avatar>
  • description

    Loads a custom avatar for a project or 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/2/universal_avatar/type/{type}/owner/{entityId}' 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. * Set project avatar to set it as the project's displayed avatar. Permissions required: Administer Jira global permission.

    tags

    Avatars

    name

    StoreAvatar

    summary

    Load avatar

    request

    POST:/rest/api/2/universal_avatar/type/{type}/owner/{entityId}

    secure

    Parameters

    • type: "issuetype" | "project"
    • entityId: string
    • query: { size: number; x?: number; y?: number }
      • size: number
      • Optional x?: number
      • Optional y?: number
    • data: any
    • params: RequestParams = {}

    Returns Promise<Avatar>

toggleFeatureForProject

trashCustomField

  • trashCustomField(id: string, params?: RequestParams): Promise<any>

updateComment

  • updateComment(issueIdOrKey: string, id: string, data: Comment, query?: { expand?: string }, params?: RequestParams): Promise<Comment>
  • description

    Updates a comment. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue containing the comment is in. * If issue-level security is configured, issue-level security permission to view the issue. * Edit all comments project permission to update any comment or Edit own comments to update comment created by the user. * If the comment has visibility restrictions, the user belongs to the group or has the role visibility is restricted to.

    tags

    Issue comments

    name

    UpdateComment

    summary

    Update comment

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/comment/{id}

    secure

    Parameters

    • issueIdOrKey: string
    • id: string
    • data: Comment
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Comment>

updateComponent

updateCustomField

updateCustomFieldConfiguration

updateCustomFieldContext

updateCustomFieldOption

  • description

    Updates the options of a custom field. If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response. Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps. Permissions required: Administer Jira global permission.

    tags

    Issue custom field options

    name

    UpdateCustomFieldOption

    summary

    Update custom field options (context)

    request

    PUT:/rest/api/2/field/{fieldId}/context/{contextId}/option

    secure

    Parameters

    Returns Promise<CustomFieldUpdatedContextOptionsList>

updateCustomFieldValue

  • description

    Updates the value of a custom field on one or more issues. Custom fields can only be updated by the Forge app that created them. Permissions required: Only the app that created the custom field can update its values with this operation.

    tags

    Issue custom field values (apps)

    name

    UpdateCustomFieldValue

    summary

    Update custom field value

    request

    PUT:/rest/api/2/app/field/{fieldIdOrKey}/value

    secure

    Parameters

    Returns Promise<any>

updateDashboard

  • description

    Updates a dashboard, replacing all the dashboard details with those provided. Permissions required: None The dashboard to be updated must be owned by the user.

    tags

    Dashboards

    name

    UpdateDashboard

    summary

    Update dashboard

    request

    PUT:/rest/api/2/dashboard/{id}

    secure

    Parameters

    Returns Promise<Dashboard>

updateDefaultScreenScheme

  • description

    Updates the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types. Permissions required: Administer Jira global permission.

    tags

    Issue type screen schemes

    name

    UpdateDefaultScreenScheme

    summary

    Update issue type screen scheme default screen scheme

    request

    PUT:/rest/api/2/issuetypescreenscheme/{issueTypeScreenSchemeId}/mapping/default

    secure

    Parameters

    Returns Promise<any>

updateDefaultWorkflow

  • description

    Sets the default workflow for a workflow scheme. Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request object and a draft workflow scheme is created or updated with the new default workflow. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    UpdateDefaultWorkflow

    summary

    Update default workflow

    request

    PUT:/rest/api/2/workflowscheme/{id}/default

    secure

    Parameters

    Returns Promise<WorkflowScheme>

updateDraftDefaultWorkflow

updateDraftWorkflowMapping

  • description

    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.

    tags

    Workflow scheme drafts

    name

    UpdateDraftWorkflowMapping

    summary

    Set issue types for workflow in workflow scheme

    request

    PUT:/rest/api/2/workflowscheme/{id}/draft/workflow

    secure

    Parameters

    Returns Promise<WorkflowScheme>

updateFieldConfiguration

  • description

    Updates a field configuration. The name and the description provided in the request override the existing values. This operation can only update configurations used in company-managed (classic) projects. Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    UpdateFieldConfiguration

    summary

    Update field configuration

    request

    PUT:/rest/api/2/fieldconfiguration/{id}

    secure

    Parameters

    Returns Promise<any>

updateFieldConfigurationItems

  • description

    Updates fields in a field configuration. The properties of the field configuration fields provided override the existing values. This operation can only update field configurations used in company-managed (classic) projects. The operation can set the renderer for text fields to the default text renderer (text-renderer) or wiki style renderer (wiki-renderer). However, the renderer cannot be updated for fields using the autocomplete renderer (autocomplete-renderer). Permissions required: Administer Jira global permission.

    tags

    Issue field configurations

    name

    UpdateFieldConfigurationItems

    summary

    Update field configuration items

    request

    PUT:/rest/api/2/fieldconfiguration/{id}/fields

    secure

    Parameters

    Returns Promise<any>

updateFieldConfigurationScheme

updateFilter

  • description

    Updates a filter. Use this operation to update a filter's name, description, JQL, or sharing. Permissions required: Permission to access Jira, however the user must own the filter.

    tags

    Filters

    name

    UpdateFilter

    summary

    Update filter

    request

    PUT:/rest/api/2/filter/{id}

    secure

    Parameters

    • id: number
    • data: Filter
    • Optional query: { expand?: string }
      • Optional expand?: string
    • params: RequestParams = {}

    Returns Promise<Filter>

updateIssueFieldOption

  • description

    Updates or creates an option for a select list issue field. This operation requires that the option ID is provided when creating an option, therefore, the option ID needs to be specified as a path and body parameter. The option ID provided in the path and body must be identical. Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource. Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

    tags

    Issue custom field options (apps)

    name

    UpdateIssueFieldOption

    summary

    Update issue field option

    request

    PUT:/rest/api/2/field/{fieldKey}/option/{optionId}

    secure

    Parameters

    Returns Promise<IssueFieldOption>

updateIssueLinkType

updateIssueType

updateIssueTypeScheme

updateIssueTypeScreenScheme

updateMultipleCustomFieldValues

  • description

    Updates the value of one or more custom fields on one or more issues. Combinations of custom field and issue should be unique within the request. Custom fields can only be updated by the Forge app that created them. Permissions required: Only the app that created the custom field can update its values with this operation.

    tags

    Issue custom field values (apps)

    name

    UpdateMultipleCustomFieldValues

    summary

    Update custom fields

    request

    POST:/rest/api/2/app/field/value

    secure

    Parameters

    Returns Promise<any>

updatePermissionScheme

  • description

    Updates a permission scheme. Below are some important things to note when using this resource: * If a permissions list is present in the request, then it is set in the permission scheme, overwriting all existing grants. * If you want to update only the name and description, then do not send a permissions list in the request. * Sending an empty list will remove all permission grants from the permission scheme. If you want to add or delete a permission grant instead of updating the whole list, see Create permission grant or Delete permission scheme entity. See About permission schemes and grants for more details. Permissions required: Administer Jira global permission.

    tags

    Permission schemes

    name

    UpdatePermissionScheme

    summary

    Update permission scheme

    request

    PUT:/rest/api/2/permissionscheme/{schemeId}

    secure

    Parameters

    Returns Promise<PermissionScheme>

updateProject

updateProjectAvatar

  • updateProjectAvatar(projectIdOrKey: string, data: Avatar, params?: RequestParams): Promise<any>

updateProjectCategory

updateProjectEmail

updateProjectType

  • updateProjectType(projectIdOrKey: string, newProjectTypeKey: "software" | "service_desk" | "business", params?: RequestParams): Promise<Project>

updateRemoteIssueLink

  • description

    Updates a remote issue link for an issue. Note: Fields without values in the request are set to null. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.

    tags

    Issue remote links

    name

    UpdateRemoteIssueLink

    summary

    Update remote issue link by ID

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/remotelink/{linkId}

    secure

    Parameters

    Returns Promise<any>

updateScreen

updateScreenScheme

updateVersion

updateWorkflowMapping

  • description

    Sets the issue types for a workflow in a workflow scheme. The workflow can also be set as the default workflow for the workflow scheme. Unmapped issues types are mapped to the default workflow. Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new workflow-issue types mappings. The draft workflow scheme can be published in Jira. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    UpdateWorkflowMapping

    summary

    Set issue types for workflow in workflow scheme

    request

    PUT:/rest/api/2/workflowscheme/{id}/workflow

    secure

    Parameters

    Returns Promise<WorkflowScheme>

updateWorkflowScheme

  • description

    Updates a workflow scheme, including the name, default workflow, issue type to project mappings, and more. If the workflow scheme is active (that is, being used by at least one project), then a draft workflow scheme is created or updated instead, provided that updateDraftIfNeeded is set to true. Permissions required: Administer Jira global permission.

    tags

    Workflow schemes

    name

    UpdateWorkflowScheme

    summary

    Update workflow scheme

    request

    PUT:/rest/api/2/workflowscheme/{id}

    secure

    Parameters

    Returns Promise<WorkflowScheme>

updateWorkflowSchemeDraft

  • description

    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.

    tags

    Workflow scheme drafts

    name

    UpdateWorkflowSchemeDraft

    summary

    Update draft workflow scheme

    request

    PUT:/rest/api/2/workflowscheme/{id}/draft

    secure

    Parameters

    Returns Promise<WorkflowScheme>

updateWorkflowTransitionProperty

  • description

    Updates a workflow transition by changing the property value. Trying to update a property that does not exist results in a new property being added to the transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties. Permissions required: Administer Jira global permission.

    tags

    Workflow transition properties

    name

    UpdateWorkflowTransitionProperty

    summary

    Update workflow transition property

    request

    PUT:/rest/api/2/workflow/transitions/{transitionId}/properties

    secure

    Parameters

    • transitionId: number
    • query: { key: string; workflowMode?: "live" | "draft"; workflowName: string }
      • key: string
      • Optional workflowMode?: "live" | "draft"
      • workflowName: string
    • data: WorkflowTransitionProperty
    • params: RequestParams = {}

    Returns Promise<WorkflowTransitionProperty>

updateWorkflowTransitionRuleConfigurations

updateWorklog

  • updateWorklog(issueIdOrKey: string, id: string, data: Worklog, query?: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; expand?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean }, params?: RequestParams): Promise<Worklog>
  • description

    Updates a worklog. Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue. * Edit all worklogs project permission to update any worklog or Edit own worklogs to update worklogs created by the user. * If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    tags

    Issue worklogs

    name

    UpdateWorklog

    summary

    Update worklog

    request

    PUT:/rest/api/2/issue/{issueIdOrKey}/worklog/{id}

    secure

    Parameters

    • issueIdOrKey: string
    • id: string
    • data: Worklog
    • Optional query: { adjustEstimate?: "new" | "leave" | "manual" | "auto"; expand?: string; newEstimate?: string; notifyUsers?: boolean; overrideEditableFlag?: boolean }
      • Optional adjustEstimate?: "new" | "leave" | "manual" | "auto"
      • Optional expand?: string
      • Optional newEstimate?: string
      • Optional notifyUsers?: boolean
      • Optional overrideEditableFlag?: boolean
    • params: RequestParams = {}

    Returns Promise<Worklog>

validateProjectKey

  • description

    Validates a project key by confirming the key is a valid string and not in use. Permissions required: None.

    tags

    Project key and name validation

    name

    ValidateProjectKey

    summary

    Validate project key

    request

    GET:/rest/api/2/projectvalidate/key

    secure

    Parameters

    • Optional query: { key?: string }
      • Optional key?: string
    • params: RequestParams = {}

    Returns Promise<ErrorCollection>

wrapRequestConfig

  • wrapRequestConfig(requestConfig: AxiosRequestConfig): Promise<AxiosRequestConfig>
  • Parameters

    • requestConfig: AxiosRequestConfig

    Returns Promise<AxiosRequestConfig>

Legend

  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Namespace
  • Variable
  • Function
  • Type alias
  • Enumeration
  • Interface
  • Inherited method
  • Protected property

Generated using TypeDoc