Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-65288

Add a function to JQL to refer to the current project

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 2
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      In order to create generic filters that work in any project, we would need a JQL function that refers to the current project in the browser page, just like we have a function like CurrentUser which refers to the current user.

      We could then have a filter that would be like:

      project = currentProject()

       

      Project

      Search for issues that belong to a particular project. You can search by project name, by project key or by project ID (i.e. the number that JIRA automatically allocates to a project). In the rare case where there is a project whose project key is the same as another project's name, then the project key takes preference and hides results from the second project.

      Syntax project
      Field Type PROJECT
      Auto-complete Yes
      Supported operators = , !=
      IS , IS NOT, IN , NOT IN
      Unsupported operators > , >= , < , <= , ~ , !~
      WAS, WAS IN, WAS NOT, WAS NOT IN , CHANGED 
      Supported functions When used with the IN and NOT IN operators, project supports: * projectsLeadByUser()
      • projectsWhereUserHasPermission()
      • projectsWhereUserHasRole()

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              e3103984a0d3 Luc Trepanier
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: