Relation between web-work action and web-item link


I have a action

<webwork1 key="newactions" name="New actions" class="java.lang.Object">
        <action name="" alias="my_components">
          <view name="success">/templates/com/mycomp/plugin/webwork/myComponentAction.vm</view>
          <view name="error">/templates/com/mycomp/plugin/webwork/myComponentAction.vm</view>
          <view name="input">/templates/com/mycomp/plugin/webwork/myComponentAction.vm</view>

I have a link defined in web-item

<link linkId="my-component-link">/secure/admin/my_components.jspa?projectId=$</link>


1. Is my understanding that action alias "my_components" is used in link as my_components.jspa to invoke

2. what function will be called when the link is clicked, within the class myComponentAction

I tried reading books written for jira plugin development and I could not find clear answer, is there a place where you can point me which explains these concepts.

Thanks very much to users of this forum for answering my questions.


1 answer

1 accepted

0 votes

1. Yes

2. doExecute(). You can call other functions by using "!commandName". For example, my_components!default.jspa will invoke doDefault() method. It is explained in the "There's more..." section on Page 67 in JIRA 5.x Development Cookbook.

Thanks Jobin

Time to get new version of book.

Got the latest edition from Packt, looks great. Thanks for writing the book.

Glad you like it :)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,081 views 13 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot