public interface JiraBranchLinkingService
| Modifier and Type | Method and Description |
|---|---|
JiraIssueDetails |
createRemoteLinkToBranch(ImmutableChainBranch branch,
String issueKey)
Creates a remote link from the issue to the branch.
|
String |
findIssueKeyToLink(ImmutableChainBranch branch)
Looks for an issue key in plan branch name or vcs branch name.
|
void |
linkBranchToIssueIfRequiredAsync(PlanKey planKey,
String username)
Looks for an issue key in the branch name.
|
void linkBranchToIssueIfRequiredAsync(@NotNull
PlanKey planKey,
@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 JiraIssueDetails createRemoteLinkToBranch(@NotNull ImmutableChainBranch branch, @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 String findIssueKeyToLink(@NotNull ImmutableChainBranch branch)
branch - to find the issue forCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.