Hi
<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 ??
Thanks
Naren
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.
Hi
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 ??
thanks
Naren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
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 .
Thanks
Naren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :
</label>
<select name="project" id="project">
<% Object object = request.getAttribute("issuemap");
Map map =((Map)object);
for(Object key : map.keySet())
{%>
<option value="<%= key%>"><%= key%></option>
<%}%>
</select>
</div>
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
Regards
Naren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
i was able to get it by overriding a mothod in my action class
thanks
Naren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
-RK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.