<web-item key="vacCalendar_link" name="Vacation Calendar" section="my_links_link/my_links_section" weight="10">
<label>Vacation Calendar</label>
<link linkId="vacCalendar_link">javascript:void(window.open('http://10.75.9.179:8081/quickr/faces/vacationCalendar.xhtml?loggedInUser=$authcontext.loggedInUser.name','test','width=800, height=800'));
</link>
</web-item>
I have added the above web-item plugin in atlassian-plugin.xml
I have another requirement now :
If the logged in user is a developer on click of the above link i want that he should be able to access URL1 but if the logged in user is a Project Manager/Lead he should be able to access URL2.
I am aware that any custom condition can be written by making our java class extend the com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition.But how do i mention links based on the condition.
Regards
Tarun