Mention a JIRA user not in the story

John McConnell February 15, 2024

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.

 

 

 

2 answers

2 accepted

2 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2024

Hi @John McConnell 

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

John McConnell February 15, 2024

Hello Bill.

I was successful in both instances. 

Thank you for the prompt reply.

-john

Like Bill Sheboy likes this
0 votes
Answer accepted
Nick Nader
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2024

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events