Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1656

When the field condition with a comment containing "does not" does not function correctly.

    • 1
    • Minor
    • Jira Software, Jira Service Management, Jira Work Management, Jira Product Discovery

      Issue Summary

      When the field condition with a comment containing "does not" does not function correctly.

      Steps to Reproduce

      1. Create a rule 
      2. Select a Trigger
      3. Add a condition
      4. Select comment in field 
        Field: 
        Comment

        Condition:

        Does not contain

        Value : 

        Stop task

       

      Expected Results

      If the issue comment does not include "stop task", then the condition should be met.

      Actual Results

      The condition will pass even if the comment contains "stop task".

      Workaround

      Use the .match() function to evaluate the Regex and compare it with an empty value.
      For example:

      1. First value:
        {{comments.body.match("(stop task)")}} 
      2. Condition: does not contain
      3. Second value: Leave it empty

          Form Name

            [AUTO-1656] When the field condition with a comment containing "does not" does not function correctly.

            Dylan made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            Dylan made changes -
            Labels New: cll-tf3202505

            Dylan added a comment -
            Atlassian Update - May 13, 2025

            Hi everyone,

            Thank you for raising this bug and bringing it to our attention.

            Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be prioritised. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all cloud users.

            As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know by commenting back on this issue.

            Thank you again for providing valuable feedback to our team, we appreciate your engagement and partnership in helping improve our products.

            Atlassian Cloud Engineering

            Dylan added a comment - Atlassian Update - May 13, 2025 Hi everyone, Thank you for raising this bug and bringing it to our attention. Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be prioritised. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all cloud users. As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know by commenting back on this issue. Thank you again for providing valuable feedback to our team, we appreciate your engagement and partnership in helping improve our products. Atlassian Cloud Engineering
            Prayag Rawat made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 981694 ]
            Marcel Caroly made changes -
            Affected Products New: Jira Software,Jira Service Management,Jira Work Management,Jira Product Discovery [ 18436, 18437, 18438, 18439 ]
            Component/s Original: Project Administration - Workflows and statuses [ 53194 ]
            Component/s New: Condition - Issue Fields [ 70305 ]
            Key Original: JRACLOUD-84742 New: AUTO-1656
            Project Original: Jira Platform Cloud [ 18514 ] New: Automation for Cloud [ 22610 ]
            SET Analytics Bot made changes -
            Support reference count Original: 2 New: 1
            SET Analytics Bot made changes -
            Support reference count New: 2
            Jessica Collins (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Komal Chauhan made changes -
            Description Original: h3. Issue Summary

            When the field condition with a comment containing "does not" does not function correctly.
            h3. Steps to Reproduce
             # Create a rule 

             # Select a Trigger

             # Add a condition

             # Select comment in field 
            Field: 
            {code:java}
            Comment{code}
            Condition:

            {code:java}
            Does not contain{code}

            Value : 

            {code:java}
            Stop task{code}


             

            h3. Expected Results

            If the issue comment does not include "stop task", then the condition should be met.
            h3. Actual Results

            The condition will pass even if the comment contains "stop task".
            h3. Workaround

            Use the [.match()|https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--] function to evaluate the Regex and compare it with an empty value.
            For example:
             # First value:
            {code:java}
            {{comments.body.match("(stop task)")}} {code}

             # Condition: does not contain

             # Second value: Leave it empty
            New: h3. Issue Summary

            When the field condition with a comment containing "does not" does not function correctly.
            h3. Steps to Reproduce
             # Create a rule 
             # Select a Trigger
             # Add a condition
             # Select comment in field 
            Field: 
            {code:java}
            Comment{code}
            Condition:
            {code:java}
            Does not contain{code}
            Value : 
            {code:java}
            Stop task{code}


             

            h3. Expected Results

            If the issue comment does not include "stop task", then the condition should be met.
            h3. Actual Results

            The condition will pass even if the comment contains "stop task".
            h3. Workaround

            Use the [.match()|https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--] function to evaluate the Regex and compare it with an empty value.
            For example:
             # First value:
            {code:java}
            {{comments.body.match("(stop task)")}} {code}
             # Condition: does not contain
             # Second value: Leave it empty
            Komal Chauhan created issue -

              Unassigned Unassigned
              a8fe698485af Komal Chauhan
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: