Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Help "The following work items did not match the condition:"

alan_kehoe May 15, 2025

Automation

On Creation of a work item, which I assume is a Change task, if the Change Request Type is one of the selected ones, then assign the ticket to a specific user.  

 

I am getting "The following work items did not match the condition:"  I dont know what work item it is not matching on, how can I determine what is wrong?

5 answers

1 accepted

3 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2025

Hi @alan_kehoe -- Welcome to the Atlassian Community!

Please review the audit log details for the rule execution, and expand all the details with the arrows at the right side of the log.  That will show which rule steps ran and the work items that did / did not meet the conditions.

You could also add Log actions to your rule before the conditions to see what values the rule "sees" in the fields: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action

 

If that does not help, please post the following to provide more context for the community to offer suggestions:

  • what type of project is this: company-managed or team-managed
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution

 

Kind regards,
Bill

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2025

Based upon your rule image, it uses the Work Item Created trigger...

That trigger (among others) has a "racetrack error" where the rule can start running before all of the data is available to the rule.  This can cause errors or conditions not matching as expected.

The mitigation / fix for this is to always add the Re-fetch Work Item Data immediately after the Work Item Created trigger.  This will slow the rule slightly and reload the data before the steps proceed.

Please add that action and re-test your rule.

alan_kehoe May 22, 2025

You are a life saver the re-fetch worked like a charm. Good to know the rule was completing before the ticket had fully populated all the fields. 

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2025

Awesome; I am glad to learn that change solved it! 

0 votes
alan_kehoe May 16, 2025

Screenshot 2025-05-16 at 7.08.17 AM.pngScreenshot 2025-05-16 at 7.10.00 AM.pngScreenshot 2025-05-16 at 7.09.14 AM.pngScreenshot 2025-05-16 at 7.09.28 AM.pngScreenshot 2025-05-16 at 7.09.49 AM.png

Regan Smith
Contributor
May 16, 2025

Ah yes! So that means that your work item BAC-23289 didn't meet the requirements set in the automation to run. This means that BAC-23289's: 

  • Issue type is not a "Change" issue type, or 
  • the "Change Request Type" field is not "New Dashboard". 

Based on the screenshot, I have a hunch BAC-23289 is a different issue type since the icon on the screenshots don't match (ie in the audit log, the work item's icon is an orange lock icon, but in the automation, the "Change" issue type has a purple double arrow icon. 

Hope this helps - happy automating! 

Like Mikael Sandberg likes this
alan_kehoe May 19, 2025

Apologies, I didnt pick a ticket that met the criteria.  I will create a new ticket today and send a screenshot

alan_kehoe May 19, 2025

Screenshot 2025-05-19 at 7.49.11 AM.pngScreenshot 2025-05-19 at 7.48.28 AM.png

alan_kehoe May 19, 2025

Also getting this when I click on Change Type

"No Matches found. Create a new request type with the Change Work type."Screenshot 2025-05-19 at 9.11.26 AM.png

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2025

Hi @alan_kehoe 

Please provide more details on the project type and screenshot of the error message you are getting?

0 votes
Regan Smith
Contributor
May 15, 2025

Hmm, like the other folks mentioned, it’s hard to know what the automation problem is without seeing a screenshot. Giving it a shot in the dark:

 

On Creation of a work item, which I assume is a Change task,

  • Trigger being when a work item is created. I would check here to make sure all work/issue types are selected here so it doesn’t exclude any created 

if the Change Request Type is one of the selected ones,

  • This would likely be a conditional filter, or branch, specifying the request type (no action would happen for the other request types).

then assign the ticket to a specific user.  

  • Obv make sure the user exists/using the correct username!

Because the error message you received is regarding the condition, that would likely be that the condition set 1) doesn’t exist, 2) no action needed, 3) conditions may be set to exclude instead of include.

Upload a screenshot and it looks like there’s an army of folks willing to dig in deeper! 

0 votes
Mikael Sandberg
Community Champion
May 15, 2025

Hi @alan_kehoe,

Welcome to Atlassian Community!

In order to help it would be useful if you posted screenshots of the rule and the audit log. Without those it is really hard to tell you what is wrong with the automation. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events