Hello,
I am a newbie to Project Automation.
I have two issues. I can't seem to find the correct way to display the values.
1. I would like to mention a JIRA user [~myid] in a comment (automation) and display the name value which is not part of the story, any fields, like assignee, reporter, etc.
Example:
Hello {{issue.dev assignee.displayName}}, we have assigned this story back to you because the User Validation/UAT has been completed.
Thank you!
cc: [~myid]
2. How do you get the display value for [{Fix Version/s}}?
Thanks in advance.
If you have the account ID for the user, you may mention them arbitrarily, without any field references. However to get their display name, they would either need to be set to a field (and so creating a user object reference) or call the REST API functions with the Send Web Request action to get their user data.
For your second question, there are several attributes available for the Fix Version smart value: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--
Please note this field can contain multiple versions, so decide how you want to display / show them. For example the default would be a comma-separated values list for the names of multiple versions:
{{issue.fixVersions.name}}
Kind regards,
Bill
Hello Bill.
I was successful in both instances.
Thank you for the prompt reply.
-john
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Welcome to Jira Project Automation!
This article should help depending on the logic behind which user you want to CC on that automated comment
I think you are shooting for a specific user so I'd use this one:
[~accountId:their account ID]
As for fixed version, this is how you display the name of it:
{{issue.fixVersion.name}}
Here is the doc showing all the other display options for fix version as well as any other smart values you can use in automation rules
Hope this helps,
Nick from Isos
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.