Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch a user from a user picker field using smart values in Automation for Jira

Dimitrios Danampasis
Contributor
December 2, 2020

I am writing an automation rule for out of office agents. I would like to have a coverer and do some other actions when there is an update in a ticket.

At the beginning of the rule, I define a user in a user picker field. Later, I would like to use the value of this field in several ways. For example, I would like to send an email to this user or tag him in a comment.

If the name of the field is "Contact name", then I've tried using the following but none is working.

{{Contact name}}
{{Contact name.accountId}}
{{Contact name.displayName}}

I am in Jira Server and this feature seems to be available only in cloud which is very annoying.

 

Cannot assign the issue: 

 

Selection_008.png

Cannot send an email: Selection_009.png

Cannot tag in comment: Selection_007.png

3 answers

1 accepted

1 vote
Answer accepted
bmccoy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2020

Hi Dimitrios,

It sounds like you might be setting the Contact Name field in an earlier Action in your rule, is that correct?

For performance reasons, we don't automatically update the details of the ticket, so actions will continue to run against the original issue contents.

Can you try adding a "Re-fetch issue data" action after setting the field and let me know how you go.

You can use a "Log Action" to test the smart values if that is easier - this just puts the values into the audit log, rather than making changes to the ticket.

Cheers,
Brydie

Dimitrios Danampasis
Contributor
December 7, 2020

Thanks, Brydie, that was it! I am able to fetch the values now.

Like # people like this
0 votes
Boris Berenberg - Atlas Authority
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.
December 2, 2020

Hi Dimitrios,

We support almost any field as a recipient in Notification Assistant for Jira. Let me know if you need a hand.

0 votes
John Funk
Community Champion
December 2, 2020

Hi Dimitrios,

In this case, I would use another text custom field for the contact's email address and just store the actual email address there. You can use the separate contract name field for their name.

Then you can send the email to the test custom field value for their email. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events