I'm trying to set an automation rule to achieve the following:
WHEN ticket has been in state "Merged/Built" for >48h
THEN post a comment on ticket
I've followed the steps described in this knowledge base article, simply tweaking the last step.
However, the comment is never posted.
I made sure that step 2 was working fine, so I suspect that the smart value in step 3 is the issue. I've tried escaping the "/" as you can see in the screenshot but that didn't work.
Any help would be greatly appreciated!
Hi @Nils Medina ,
please try to add the Log action to find out value of your smart value {{Time in Merged/Built.diff(now).hours}}
https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/
Hi @Nils Medina ,
also, you are missing word issue in the smart value, it should be probably:
{{issue.Time in Merged/Built.diff(now).hours}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nils Medina
Adding to Hana's answer...
Smart values are name, spacing, and case-sensitive. And often the smart value does not match the displayed field name on the issue views. To identify the correct smart value (and custom field id) for any supported fields for automation rules.
The essential steps are:
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
Once you find your field, update your rule condition accordingly and re-test.
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.
Thank you both, I managed to fix the smart value :)
In the end, the issue was two-sided:
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.