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

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

    XMLWordPrintable

Details

    Description

      Update

      This bug was closed as a duplicate of https://jira.atlassian.com/browse/JRACLOUD-77091

      The updates will be done on the other one from now on.

      Issue Summary

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

      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. Archive the project
      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 Archived and content is inaccessible, however, this shouldn't prevent other projects' 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 Archive 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.
      • Move the projects to the trash, the ones that the affected user is the project lead associated with it.
      • Alternatively, you can have a dummy user to set as project lead on the Archived projects.

      Attachments

        Issue Links

          Activity

            People

              spadavala@atlassian.com Sumeet Padavala (Inactive)
              0a4d3986ddf5 Marcelo Beloni
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: