I am trying to transition tickets from from one status to another when an associated build is successful.
However, I am unclear on how a ticket is matched to run the automation when a build is successful. None of my tickets are being matched, I can see in the audit log:
The TIC-3407 is in a commit message
This should automatically link the ticket and if you use the "Build successful" trigger.
As far as smart values go, the best way to debug is to add a "log action" and output the smart value to the logs to see the details.
https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/
We should have the "build" object available. You should try adding the debug
Build: {{build}}
Name: {{build.name}}
URL: {{build.url}}
State: {{build.state}}
Hope that helps!
I had only added build.url and build.refs, will be adding the rest of the smartvalues for the build object for further data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didn't realize that the branch smartvalue is only available for when the branch is created, so it was matching nothing. For the simple notification in this example, I should just put a slack notification webhook in github action, but I had wanted to do other jira related actions when code related to jira tickets were merged into a branch. It does not like this functionality is available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Henry Yei ,
For better understanding and analyzing the problem:
Could you please provide more date? --> screenshot of your rule and audit log would be great to see what happens.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.