-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
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
- Create a rule
- Select a Trigger
- Add a condition
- 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:
- First value:
{{comments.body.match("(stop task)")}}
- Condition: does not contain
- Second value: Leave it empty
- mentioned in
-
Page Loading...
[AUTO-1656] When the field condition with a comment containing "does not" does not function correctly.
Remote Link | New: This issue links to "Page (Confluence)" [ 981694 ] |
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 ] |
Support reference count | Original: 2 | New: 1 |
Support reference count | New: 2 |
Status | Original: Needs Triage [ 10030 ] | New: Gathering Impact [ 12072 ] |
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 |