Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-77091

JQL with projectsLeadByUser() returns an error if one of the projects is Archived

    XMLWordPrintable

Details

    Description

      Issue Summary

      Running a JQL with the function projectsLeadByUser() returns an error (status 400 in browser console) if one of the projects is Archived:

      A value provided by the function 'projectsLeadByUser' is invalid for the field 'project'.
      

      Steps to Reproduce

      1. Create a project
      2. Add issues to it
      3. Ensure you are the Project lead
      4. Move the project to Archived
      5. Run a JQL with the same user like:
        project in projectsLeadByUser()
        

      Expected Results

      The project should not be returned in the results as it's in the Archived and content is inaccessible, however, this shouldn't prevent other project's content to be displayed.

      Actual Results

      Error is displayed:

      A value provided by the function 'projectsLeadByUser' is invalid for the field 'project'.
      

      Workaround

      • Restore all the projects you are the lead of from the Archived projects to be able to perform the search, but please keep in mind that this will make the project accessible according to the permission scheme associated with it.
      • Alternatively, you can have a dummy user to set as project lead to projects to be marked as archived, but not sure if this would be a feasible option to everyone.

      Attachments

        Issue Links

          Activity

            People

              bkumar@atlassian.com Barun Kumar
              14d60c70a7d2 Gabriel de Souza (Inactive)
              Votes:
              12 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: