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

Improve comments JQL contains search for issues with multiple comments

    XMLWordPrintable

Details

    • 1
    • 9
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Here's the initial problem. We have an issue with comments saying "Comment One" and another saying "Comment Two". When trying to exclude that from a search, we can say "Do not include issues where the comment has 'Comment One' in it" using the !~ option, but the second comment does not match this so the issue is not excluded. Ideally we'd want a "comments" JQL option that searches all the comments and treats them as one block.

      Originally logged as a bug, here's the steps to reproduce this behaviour:

      • Create a new project;
      • Create one issue with the summary "Issue One";
        • Create a comment in this new issue with the content "Comment One";
      • Create one issue with the summary "Issue Two";
        • Create a comment in this new issue with the content "Comment Two";
      • Create one issue with the summary "Issue Three";
        • Create two comments in this new issue. One with the content "Comment One" and one with the content "Comment Two";

      Now go to the Issue Navigator using the advanced search and do the following JQL's:

      comment !~ "\"Comment One\"" AND comment !~ "\"Comment Two\""
      

      This should return zero results, but it brings the Issue Three!

      comment !~ "\"Comment One\""
      

      This should return the Issue Two, but it brings the Issue Two and the Issue Three!

      comment !~ "\"Comment Two\""
      

      This should return the Issue One, but it brings the Issue One and the Issue Three!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aquadrospetry Andre Quadros Petry (Inactive)
              Votes:
              20 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: