recentProjects()

Description:

Perform searches based on projects that you have recently viewed, i.e. project that are in the 'Current Project' or 'Recent Projects' sections of the 'Project' drop-down menu.

if you are not logged in to JIRA, only projects from your current browser session will be included.


SyntaxrecentProjects()
recentProjects(limit)
Available sincev1.0.0-RELEASE
Supported fieldsProject
Supported operatorsIN , NOT IN
Unsupported operators

= , != , ~ , !~ , > , >= , < , <=

IS , IS NOT , WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED

Examples:

• Find issues in my current project:

project IN recentProjects(1)

• Find 'OPEN' issues in the last five projects that I have visited:

project IN recentProjects(5) AND status = Open

• Find unresolved issues in projects that I have recently visited:

project IN recentProjects() AND resolution = Unresolved

Real World Use Cases:

· JRASERVER-23895 - Create JQL currentProject() function (by Gary D. Brown)
·
JQL to select current project from JIRA Agile (by Gabriel Bauman at ATLASSIAN Community)
·
How can I get the current project to use in a JQL query? (by Frank Spafford at ATLASSIAN Community)



JQL Function Reference