I have added a comment to a linked service desk issue that lets the customer know that their issue has been addressed in a release. I am trying to pull the release number from the trigger issue but it always adds the comment but no fix version.
Is there a way to do this?
Hello @Shaylyn Demidow
Welcome to the Atlassian community!
When debugging Automation, I find that it is very helpful to add Log actions and write to the rule Audit Log the values for smart values to make sure they contain the data I expect.
Also, have you looked at the Audit Log to see if it provides any information about the execution of the Add Comment action?
And, lastly, the problem is that you have a typo in the smart value. You have two "i" characters at the beginning of "Issue" in "triggerIssue"
{{triggerIissue
vs.
{{triggerIssue
Hi Trudy,
The spelling error wasn't the problem as I fixed that and it still does not pull the fix version in. The audit log says "success" without any indication of failure on that smart value.
I am not even sure if that is the right smart value format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the issue triggering the rule have values in the Fix Version/s field?
Are you getting any comment added to your issue when the rule runs?
I have created a rule that I trigger manually that simply adds a comment with nothing more than the following in the comment text
{{triggerIssue.fixversions}}
I trigger this rule on an issue that has values in the Fix Version/s field and I get a comment added to the issue.
However, the text add as a comment is the unique numeric IDs of the Versions, not the names of the versions. This is the smart value needed to put the Version name in the comment.
{{triggerIssue.fixversions.name}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry it took so long, just got back to testing this and
{{triggerIssue.fixversions.name}}
worked! Thanks so much
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.