Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description:

Excerpt

Perform searches based on issues that you have recently viewed, i.e. issues that are in the 'Recent Issues' section of the 'Issues' drop-down menu.
if you are not logged in to JIRA, only issues from your current browser session will be included.

Note:
Formely this function works in the same way as issueHistory() native Jira JQL function, but also allows you to limit the result, so keep in mind that altough recentIssues() function returns issues ordered from the most recent viewed issues to older, due to a limitation of the JQL language you must order the results using the lastViewed field, as well as you need to do with issueHistory(). Moreover, notice that it is possible to control the maximum number of items stored in the issue history via 'jira.max.Issue.history.items' property in the jira-application.properties file, as a consequence, this function, as well a issueHistory() function, will not return more issues than the maximun number of items specified by the 'jira.max.Issue.history.items' property.


SyntaxrecentIssues()
recentIssues(limit)
Available sincev1.0.0-RELEASE
Supported fieldsIssue
Supported operatorsIN , NOT IN
Unsupported operators

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

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

Examples:

• Find the last 25 issues that I have recently viewed:

Code Block
languagesql
themeConfluence
issue IN recentIssues(25) ORDER BY lastViewed


• Find recently viewed issues of 'LATAM' project:

Code Block
languagesql
themeConfluence
issue IN recentIssues() AND project = "LATAM" ORDER BY lastViewed

Real World Use Cases:

· Suggested by Keith Garland in JRACLOUD-24612 - issueHistory JQL function should return the issues in viewed order




JQL Function Reference

Page Tree
rootJQL Function Reference
startDepth2