How can I creat a new page with web-item and xwork

I want to create a link to a new page.
I user the following code but it is no work, and the message is the page does not exist.
■atlassian-plugin.xml
<xwork key="knowwho.actions.global" name="Targeted Search Admin Actions">
<description>Actions for configuring Targeted Search criteria.</description>
<package name="targetedsearchadmin" extends="default" namespace="/plugins/targetedsearch/settings">
<default-interceptor-ref name="validatingStack"/>
<action name="configurefilters" class="knowwho.actions.search"></action>
<result name="success">/targeted-search/templates/search-configuration.vm</result>
</package>
</xwork>
<web-item key="configurefilters" name="Configure Search Filters" section="system.header/left" weight="60">
<label key="Knowledge Search"/>
<link>/plugins/targetedsearch/settings/configurefilters.action</link>
</web-item>
■search.java
do nothing but just return success
■search-configuration.vm
<html>
<body>
<h1>Kitchen Duty Plugin - Planning Page</h1>
<p>Now it looks nice :)</p>
</body>
</html>

I had try for 2 days, but It still not work. Can someone tell me how should I do?
Thank you very much.

2 answers

This widget could not be displayed.

@Kong FanLiang

atlassian-plugin.xml looks good and I think issue in something else.

Could you share all your project (pom.xml + src folder)?

It may be cause by package. I creat the project again and add the package in the xwork. It works!

Thank you very much

This widget could not be displayed.

@Domenico Manzo

It may be cause by package name. I creat the project again and add the package in the xwork. It works!

Thank you very much

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you