Skip to end of banner
Go to start of banner

Jira Integration Routines

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

This section contains routines that enable users to interact with Jira environment.

Attachment Routines

Comment Routines

  • getCommentByIdGets all the comment properties for a given id.
  • getLastCommentGets all the comment properties for the last issue comment.
  • addCommentSPosts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment.
  • deleteCommentDeletes a comment with the specified id, deletes the latest comment or deletes all comments from a given issue.
  • editCommentEdits a comment with the specified id and text.
  • getAllCommentIdsGets all the comment ids that are already entered on an issue.
  • getCommentReturns the comment entered in a transition screen, or an empty string if no comment has been entered or the transition doesn't have a screen.

Custom Field Routines

Group Routines

  • groupsInRoleReturns the groups that correspond to a certain role on the specified project.
  • allGroupsReturns the list of group names that exist in the Jira environment.
  • groupExistsVerifies if the selected group is a registered Jira group.

Issue Routines

  • allLinkedIssuesReturns an array with the issue names linked with the specified issue, including the system links (subtask, issue in epic).
  • changeSubtaskOrderChanges subtask position.
  • cloneIssueDuplicates the issue and returns the key of the duplicated issue. If specified, it also creates a link to the duplicated issue.
  • countIssuesReturns the number of issues that matched the search query.
  • createIssueCreates an issue based on the provided arguments.
  • deleteIssueDeletes the selected issue.
  • getIssueEntityPropertyJsonReturns the entity property in JSON string.
  • getIssueEntityPropertyValueReturns the entity property value as a String.
  • getIssueURLReturns the url of the issue.
  • getStatusCategoryGets the category of the status for the given issue.
  • isIssueContextVerifies if the script is running in an issue context.
  • issueExistsChecks to see if the provided issue key relates to an existing issue.
  • lastIssueChangesReturns the last changes details for all the fields touched by user from the selected issue's history.
  • moveIssueThis routine helps moving the issue (including sub-tasks, custom/standard fields, attachments) between projects.
  • selectIssuesReturns an array with the keys of the issues that matched the search query.
  • selectIssuesByFilterReturns an array with the keys of the issues obtained by running the given filter.
  • subtasksGet the list of sub tasks linked to the parent issue.
  • addHistoryItem
  • isInReindexing

Jira System Routines

  • i18nTextReturns the i18n text if the key can be resolved. Otherwise, the key itself will be returned.
  • getJIRABaseUrlThis routine returns Jira base url where the SIL script is called.

Link Routines

  • cpCfValueToLinkedIssueEnables to copy a custom field value to linked issues or by linking type. We also support custom Fields from the Portfolio plugin.
  • createWebLinkCreates a web link on the issue.
  • deleteWebLinkByIdRemoves a web link.
  • getIssueLinksDetailReturns all the details about the links of an issue key.
  • getWebLinkByIdRetrieves information about a web link.
  • getWebLinksForIssueGets the ids of all the web links on an issue.
  • linkedIssuesReturns an array with the Issue keys linked with the specified one.
  • linkIssueLinks two issues by a specified link type name. First issue will have the outward description of the link type, the second issue will have the inward description of the link type.
  • unlinkIssueRemoves the specified link between two issues.

Project Routines

  • getComponentsObjectsReturns all the project components as an array of JComponent structures.
  • getVersionsObjectsReturns all the project versions as an array of JVersion structures.
  • allProjectsReturns a string array with the keys of all the projects in Jira.
  • getProjectComponentLeadReturns the leader of the specified component from the specified project.
  • getProjectKeyByNameRetrieves the key for the project with the given name.
  • getProjectRoleIdByNameRetrieves the id for the project role with the given name.
  • getProjectRolesReturns a list of all project role names in Jira.
  • getTeamLeadersReturns the team leaders user keys on the specified project. All the component leads.
  • issueTypesForProjectRetrieves the issue types for the project with the given key.
  • projectMembersReturns a list with all the user keys of the users who have a role in the specified project.
  • projectPMReturns the user key of the project manager (project lead) of the selected project, if exists.
  • projectsForPMReturns all the projects the selected user has the role of project manager (project lead) in.
  • projectsForUserReturns all the projects where this user has permission to assign or to be assigned issues.
  • projectsWithPermissionForUserRetrieves the project keys where the given user has the given permission.
  • projectObjectReturns the project properties.

User Routines

  • userKeyToDisplayNameReturns the display name for the provided user key.
  • getUserGets the user by username or key.
  • accountIdToDisplayNameReturns the display name for the provided user key.
  • currentUserReturns the key for the user that invoked the script containing currentUser.
  • currentUserKeyReturns the key for the user that invoked the script containing currentUserKey.
  • currentUsernameReturns the username for the user that invoked the script containing currentUsername.
  • getAllActiveUsersReturns a list of all active users in Jira.
  • getAllInactiveUsersReturns a list of all inactive users in Jira.
  • getAllUsersReturns a list of usernames for all active and inactive users in Jira.
  • userGroupsReturns the groups the selected user belongs to.
  • getUserByEmailGets the user by email address.
  • getUserByFullNameGets the user by full name.
  • getUserDirectoryNameReturns the directory name the user belongs to.
  • getUserPropertyRetrieves properties of users.
  • hasPermissionChecks if a user has the specified permission.
  • hasUserPropertyChecks if the user has the given property set.
  • isAnyUserAuthenticatedVerifies if there is a logged in user.
  • isTeamLeaderVerifies if the specified user is a team leader on the project (if it is a component lead).
  • isUserActiveChecks to see if the given user has an active (licensed) account.
  • isUserAdminDetermines if a provided user has administration privileges in the current Jira environment.
  • isUserInRoleReturns "true" if the user has a certain role on the specified project.
  • runAsAssumes a user when running a script.
  • setUserPropertySets properties of users.
  • userEmailAddressReturns the email address of the selected user. The email address may be needed to supply it to various external systems.
  • userExistsVerifies if the selected user is registered Jira user.
  • userFullNameReturns the full name (firstname, lastname) of the user.
  • userHasAccessToCommentVerifies if a comment is visible for an user.
  • userHasCoreAccessVerifies if a user has access to the Jira Core application.
  • userHasServiceDeskAccessVerifies if a user has access to the Jira Service Desk application.
  • userHasSoftwareAccessVerifies if a user has access to the Jira Software application.
  • userInGroupVerifies if the selected user is in the selected group(s).
  • userKeyToUsernameReturns the username for the provided user key.
  • userLanguageReturns the language for an user.
  • userLocaleReturns the locale for a user.
  • usernameToUserKeyReturns the user key / account id for the provided username.
  • userRolesReturns the roles of the provided user in the project.
  • usersInGroupsReturns a list of users common to all the specified groups.
  • usersInRoleReturns the users that corespond to a certain role on the specified project.

Workflow Routines

Worklog Routines


  • No labels