I have an automation set up that is working great for the most part. It simply adds the next fix version to work items when a PR is merged.
I want to exclude adding the fix version for just 1 of the 3 Github repositories we merge to from this project.
How do I set up this condition?
I've tried comparing two values and I am doing something wrong.
This is team managed
Please try adding the sourceBranch or destinationBranch to the smart value expression before checking for the repository.name:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--
I recommend moving the condition outside of the trigger, writing the value to the audit log, confirming the exact expression, and then moving it back.
And if that does not help, this could be one of the read just-in-time smart values...potentially leading to timing problems in the condition in the trigger. The way to solve that is to again remove the condition from the trigger, use the Create Variable action to save the smart value, and then use that variable with the Smart Value Condition to test it.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.