JQL parameter "!~" not working properly for comment field

XMLWordPrintable

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

      Steps to Reproduce

      • Create an issue TESTONE-1 and include the comment "foo" inside the issue for the first comment:
      • Navigating to the Advanced Search, using the following parameter should not display the issue TESTONE-1:
        comment !~ "foo"
        

      • However, navigating back to the issue page, try to add the second comment "bar" into the issue:
      • This issue is reproducible using the same parameter in the Advanced Search JQL whereby you can see that TESTONE-1 is displayed, ignoring the original condition of the JQL:

      Workaround

      • Create a filter such as
        comment~foo

        , which will return all the foo comments. Save it as foo comments

      • Create a new filter as
        filter!= "foo comments"

        . This will exclude all issues from the previous filter and the desired results will be returned.

        1. bug_1.JPG
          bug_1.JPG
          140 kB
        2. bug_2.JPG
          bug_2.JPG
          88 kB
        3. bug_3.JPG
          bug_3.JPG
          150 kB
        4. bug_4.JPG
          bug_4.JPG
          97 kB

            Assignee:
            Unassigned
            Reporter:
            Ahmad Danial (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: