Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

107 views 1 8
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