public class JiraBranchLinkingServiceImpl extends Object implements JiraBranchLinkingService
| Constructor and Description |
|---|
JiraBranchLinkingServiceImpl(PlanManager planManager,
JiraRemoteIssueManager jiraRemoteIssueManager,
JiraRestService jiraRestService,
JiraApplinksService jiraApplinksService,
JiraIssueUtils jiraIssueUtils,
ImpersonationService impersonationService,
ImmutablePlanCacheService immutablePlanCacheService) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull JiraIssueDetails |
createRemoteLinkToBranch(@NotNull ImmutableChainBranch branch,
@NotNull String issueKey)
Creates a remote link from the issue to the branch.
|
@Nullable String |
findIssueKeyToLink(@NotNull ImmutableChainBranch branch)
Looks for an issue key in plan branch name or vcs branch name.
|
void |
linkBranchToIssueIfRequiredAsync(@NotNull PlanKey planKey,
@Nullable String username)
Looks for an issue key in the branch name.
|
public JiraBranchLinkingServiceImpl(PlanManager planManager, JiraRemoteIssueManager jiraRemoteIssueManager, JiraRestService jiraRestService, JiraApplinksService jiraApplinksService, JiraIssueUtils jiraIssueUtils, ImpersonationService impersonationService, ImmutablePlanCacheService immutablePlanCacheService)
public void linkBranchToIssueIfRequiredAsync(@NotNull
@NotNull PlanKey planKey,
@Nullable
@Nullable String username)
JiraBranchLinkingServiceChainBranchIdentifier.isRemoteJiraLinkRequired() to see if remote link succeeded.linkBranchToIssueIfRequiredAsync in interface JiraBranchLinkingServiceplanKey - of branch to linkusername - (optional) to use for authentication if possible/required@NotNull public @NotNull JiraIssueDetails createRemoteLinkToBranch(@NotNull @NotNull ImmutableChainBranch branch, @NotNull @NotNull String issueKey) throws RemoteLinkCreationFailedException, CredentialsRequiredContextException
JiraBranchLinkingServicecreateRemoteLinkToBranch in interface JiraBranchLinkingServicebranch - to linkissueKey - of the issue to linkRemoteLinkCreationFailedException - if creation of the remote link in jira failsCredentialsRequiredContextException - if authentication is required to create the remote link in JIRA.@Nullable public @Nullable String findIssueKeyToLink(@NotNull @NotNull ImmutableChainBranch branch)
JiraBranchLinkingServicefindIssueKeyToLink in interface JiraBranchLinkingServicebranch - to find the issue forCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.