Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,795
Community Members
 
Community Events
165
Community Groups

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

Edited

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 Dec 06, 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

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

Like # people like this

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 M Funk Community Leader Dec 02, 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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

336 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you