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

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

            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 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:
              2 Start watching this issue

                Created:
                Updated: