0

必要に応じてカスタム ページを表示する JIRA プラグインを作成しています。このページでは、JQL 検索結果を表示するページを作成しています。以下のように、Atlassian-plugin.xml に Web アイテムとそれに関連するアクションを作成しました。

Atlassian-plugin.xml

<web-item key="search_allissues_link" name="Srarch All Issues" section="custom_links_link/custom_links_section" weight="10">
<label>Search</label>
<link linkId="create_link">/secure/SearchAllIssuesList!hello.jspa</link>
</web-item>


<action
name="com.plugins.jira.customscreensui.action.JQLSearchAction"
alias="SearchAllIssuesList">
<command name="hello" alias="Hello">
<view name="input">templates/all_issues_list.vm</view>
</command>
</action>

これは私のアクションクラスです

public class JQLSearchAction extends JiraActionSupport{
List<Issue> issueList;
JQLSearchModel jqlSearchModel;
@RequiresXsrfCheck
protected void doValidation() {}

@RequiresXsrfCheck
protected String doExecute() throws Exception
{
jqlSearchModel=new JQLSearchModel();
issueList=jqlSearchModel.getAllIssuesList();
return "input";
}

@RequiresXsrfCheck
protected String doHello() throws Exception
{
jqlSearchModel=new JQLSearchModel();
issueList=jqlSearchModel.getAllIssuesList();
return "input";
}
public List<Issue> getIssueList() {
return issueList;
}
public void setIssueList(List<Issue> issueList) {
this.issueList = issueList;
}
}

しかし、次の例外が発生しています java.lang.IllegalArgumentException: No command 'hello' in action 解決策があれば教えてください。

4

1 に答える 1