public class

LinkJiraIssue

extends AbstractIssueLinkAction
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
               ↳ com.atlassian.jira.web.action.issue.AbstractViewIssue
                 ↳ com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                   ↳ com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
                     ↳ com.atlassian.jira.plugin.link.remotejira.LinkJiraIssue

Class Overview

Links an issue to an issue from a remote JIRA server.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
@Autowired LinkJiraIssue(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserHistoryManager userHistoryManager, UserPropertyManager userPropertyManager, IssueLinkService issueLinkService, UserUtil userUtil, IssueLinkTypeManager issueLinkTypeManager, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher, ApplicationLinkService applicationLinkService, RemoteJiraRestService remoteJiraRestService, IssueManager issueManager, IssueLinkManager issueLinkManager, InternalHostApplication internalHostApplication, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory)
Public Methods
String doDefault()
The "default" command.
boolean getDefaultCreateReciprocal()
InternalHostApplication getInternalHostApplication()
String[] getIssueKeys()
String getJiraAppId()
ApplicationLink getJiraAppLink()
Collection<ApplicationLink> getJiraAppLinks()
String getLastUsedLinkType()
String getLinkDesc()
Collection<String> getLinkDescs()
String getRemoteIssueUrl(String issueKey)
boolean isCreateReciprocal()
boolean isValidToView()
Returns true if the contents of the action should be shown, false if otherwise.
void setCreateReciprocal(boolean createReciprocal)
void setIssueKeys(String[] issueKeys)
void setJiraAppId(String jiraAppId)
void setLinkDesc(String linkDesc)
Protected Methods
String doExecute()
void doValidation()
Validate that the user has permission to link issues, and that the comment field is valid.
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractViewIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.OperationContext
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

@Autowired public LinkJiraIssue (SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserHistoryManager userHistoryManager, UserPropertyManager userPropertyManager, IssueLinkService issueLinkService, UserUtil userUtil, IssueLinkTypeManager issueLinkTypeManager, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher, ApplicationLinkService applicationLinkService, RemoteJiraRestService remoteJiraRestService, IssueManager issueManager, IssueLinkManager issueLinkManager, InternalHostApplication internalHostApplication, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory)

Public Methods

public String doDefault ()

The "default" command. Checks that the current issue exists and that the user has permission to view it.

Returns
  • INPUT if success, ERROR if otherwise
Throws
Exception

public boolean getDefaultCreateReciprocal ()

public InternalHostApplication getInternalHostApplication ()

public String[] getIssueKeys ()

public String getJiraAppId ()

public ApplicationLink getJiraAppLink ()

public Collection<ApplicationLink> getJiraAppLinks ()

public String getLastUsedLinkType ()

public String getLinkDesc ()

public Collection<String> getLinkDescs ()

public String getRemoteIssueUrl (String issueKey)

public boolean isCreateReciprocal ()

public boolean isValidToView ()

Returns true if the contents of the action should be shown, false if otherwise.

Returns
  • true if the contents of the action should be shown, false if otherwise

public void setCreateReciprocal (boolean createReciprocal)

public void setIssueKeys (String[] issueKeys)

public void setJiraAppId (String jiraAppId)

public void setLinkDesc (String linkDesc)

Protected Methods

protected String doExecute ()

protected void doValidation ()

Validate that the user has permission to link issues, and that the comment field is valid. Override this method to perform validation specific to the concrete action. It is recommended that this method be invoked by any overriding methods.