public interface JiraBranchLinkingService
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.
|
void linkBranchToIssueIfRequiredAsync(@NotNull @NotNull PlanKey planKey, @Nullable @Nullable String username)
ChainBranchIdentifier.isRemoteJiraLinkRequired()
to see if remote link succeeded.planKey
- of branch to linkusername
- (optional) to use for authentication if possible/required@NotNull @NotNull JiraIssueDetails createRemoteLinkToBranch(@NotNull @NotNull ImmutableChainBranch branch, @NotNull @NotNull String issueKey) throws RemoteLinkCreationFailedException, CredentialsRequiredContextException
branch
- 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 @Nullable String findIssueKeyToLink(@NotNull @NotNull ImmutableChainBranch branch)
branch
- to find the issue forCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.