I am calling a servlet in the link tag of Web-item to render a velocity. When i click the link it is redirecting to a new page instead of opening as a section.
<web-section key="projectgroup5" name="Dates Section" location="atl.jira.proj.config" weight="100"> <condition class="com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition" /> </web-section> <web-item key="jira-menu-item" name="Dates Admin" section="atl.jira.proj.config/projectgroup5" weight="100" application="jira"> <description>Link to versions meta information.</description> <label key="version.admin.label" /> <link linkId="xproduct-admin-link">/plugins/servlet/xproduct/admin</link> </web-item>
I need to open this link on the same page. Can some one help? Please let me know if more information is required.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added the meta information on my vm page and hard coded the project id and key since i am unable to access the project object on the vm page. Can you tell how to handle this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added meta information but i observed two issues.
1. active tab (When i click on the new tab, it is not rendering as a active page)
2. header is missed
Appreciate if you can share any clues on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Spatruni,
Thanks for the support. I had found the solution a few days before. Actually I found the solution from your answer only.
And I'm sorry for not updating this post.
And again thanks for your support .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm new to developement in JIRA. I have develope a plugin using a web section module. A new tab with a drop down menu appears in JIRA's top-level menu as in the image (My Company).
But it is appearing before we login into jira. Due to it availabe to everyone. I don't want it to happen like that. I want it to be available to specific user. Can u help me with this and Can you please share the code .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add this condition to web-item section
<condition class="com.atlassian.jira.plugin.webfragment.conditions.UserLoggedInCondition" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for support Spatrun
I tried doing this, but its not working. Do I have to do any this else. I have pasted the code below.
<web-section key="my_links_section" name="My Links Main Section" location="my_links_link" weight="10"> <condition class="com.atlassian.jira.plugin.webfragment.conditions.UserLoggedInCondition" /> </web-section> <web-item key="my_links_link" name="Link on My Links Main Section" section="system.top.navigation.bar" weight="47"> <label>My Company</label> <link linkId="my_links_link">http://www.atlassian.com</link> </web-item> <web-item key="website_link" name="Company Web Site" section="my_links_link/my_links_section" weight="10"> <label>Web Site</label> <link linkId="website_link">http://www.atlassian.com</link> </web-item>
Wiating for your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kedar,
Sorry for replying late. I saw your post just now..
Please add the same condition for the web-item section as well.
Let me know if you still see.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its working now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any comments please??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atlassians, Any comments please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.