This example shows an Atlassian JIRA plugin that adds a simple JQL function to JIRA. It allows a user to search for issues only in those projects that the user has visited. 

For a complete description of the example, along with the steps to create it, see the tutorial at: