Forums

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

Automation Rule failing to update custom field

David Kott November 15, 2022

I have an automation rule to update a custom field based on the issue type.  I have several issue types that work correctly but one that does not, even though it is set up exactly the same as the others.

The error I get in the audit log is: The following issues did not match the condition:

It only seems to fail for the last issue type on the list of automatic updates.

Any ideas?

1 answer

0 votes
Alex Koxaras _Relational_
Community Champion
November 15, 2022

@David Kott please provide more context to your problem: What type is that custom field? Is it the same with the other? How do you set up the value? Did you place a log component to check the value of the condition?

David Kott November 15, 2022

The custom field is just a Select List (single choice).  It is the same field that is used for the others.

How would I place a log component?

Alex Koxaras _Relational_
Community Champion
November 15, 2022

With smart values and by reading this:

https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/

Basically you want to search why your automation failed to pass that check. So log the value of the field you are checking. Run the rule and then check the audit log.

Crosscheck the value you are getting from the log, with the actual value of the condition. 

David Kott November 15, 2022

I'm not in the Cloud.  Will it still work on Data Center?

Alex Koxaras _Relational_
Community Champion
November 15, 2022

Yup!

David Kott November 15, 2022

Ok.  I added the following:

Custom Field is {{issue.customfield_13006}}

and ran the rule.  Still didn't work and didn't get any notification in the audit log.

Alex Koxaras _Relational_
Community Champion
November 15, 2022

@David Kott without seeing the rule I can't help you any more. Can't tell where you've placed the log.. Most likely the rule didn't went that far to run the specific component. Try adding the log before the condition.

David Kott November 16, 2022

Capture1.PNGCapture2.PNG

 

Here is the rule and the log.

Alex Koxaras _Relational_
Community Champion
November 16, 2022

Hold on... you have a condition about the issue type being equal to "SDA CCR". And your rule doesn't pass this condition, meaning that the issue which trigger this rule, is not of that specific issue type.

David Kott November 16, 2022

Capture 3.PNG

This is what I get when I create the issue.  Issue type SDA CCR.

Alex Koxaras _Relational_
Community Champion
November 16, 2022

Reindexing the project?

David Kott November 16, 2022

Didn't help.

Alex Koxaras _Relational_
Community Champion
November 16, 2022
  • Few more things I need from you:
  • A complete screenshot of your rule with all component details.
  • A confirmation that PMOCCMTEST-73 is the screenshot you provided above.
  • Check all your issue types and let me know if you have any duplication of SDA CCR.
David Kott May 9, 2023

The project ended up not being used so it is a moot point.  Thanks for you help, though.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events