<webwork:property value="/field('project')/createHtml(null, /, /, /issueObject, @displayParams)" escape="'false'" />

This code displays all the projects .How can i display only few Projects here ??


2 answers

1 accepted

0 vote

Either you need to modify the getCreateHtml method in the Project field to return selected projects or extend the relevent action to add a new method and use it in the jsp file.

I am sure you already figured that it currently returns projects where you can access and so you can use permissions to limit the list.

i am having a dropdown where i am getting all the projects so how can i get wants to get only few projects in my drop down .
i am extending the CreateIssue.java class and overriding getAllowedProjects() method and returning a collection of my own projects
so now in my drop down how can i get only my projects ??


i am Having a web-item and upon clicking on that web item i will get 2 drop down one for projects and other for issues
so upon clicking on that webitem my first drop down should display the only few projects .this should happen for only this web-item .


You must have an action class for the web-item I believe? If so, return the selected list of projects in the action class and use that in the jsp file (or velocity template)!

I extended CreateIssue Class in my Action class and put the projects and its associated issues in a map and in my jsp file instead of this line
<webwork:property value="/field('project')/createHtml(null, /, /, /issueObject, @displayParams)" escape="'false'" />
i mentioned

<div class="field-group">
<label >
Project :
<select name="project" id="project">
<% Object object = request.getAttribute("issuemap");
Map map =((Map)object);
for(Object key : map.keySet())
<option value="<%= key%>"><%= key%></option>



Here issuemap has the key as projects and the values as issues associated to the projects.

This above code is for Projects dropdown and for issues drop down is the below code

<ww:property value="/field('issuetype')/createHtml(null, /, /, /issueObject, /displayParams)" escape="'false'" />

so up to here its working fine but when i change my issueTypeScheme for any project , then i am getting a blank for issues dropdown

plz help


i was able to get it by overriding a mothod in my action class



Hi @Jobin Kuruvilla, 

could you please help me converting the following jsp tags to equavalent velocity(.vm) code 

<ww:property value="/field('project')/createHtml(null, /, /, /issueObject, /displayParams)" escape="'false'" />

<ww:property value="/field('issuetype')/createHtml(null, /, /, /issueOabject, /displayParams)" escape="'false'" /> 

Thanks in advance


Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

460 views 8 16
Read article

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