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,361,139
Community Members
 
Community Events
168
Community Groups

Set assignee by email address within automation action

I'm creating a subtask in an automation rule, in additional fields I specify:

 

{"fields": {
"assignee": {"emailaddress": {{CustomEmailField.asJsonString}} },
"description": {{CustomEmailField.asJsonString}}
}}

 

The description shows address@domain.com but the subtask remains unassigned.  I tried the following variations without success:

 

"assignee": {{CustomEmailField.asJsonString}}

"assignee": {"username": {{CustomEmailField.asJsonString}} }

"assignee": {"name": {{CustomEmailField.asJsonString}} }

"assignee": {"key": {{CustomEmailField.asJsonString}} }

 

How do I assign an issue to a user via their email address within a jira automation?

1 answer

0 votes
Hana Kučerová Community Leader Sep 11, 2022

Hi @Bryan Meyerovich ,

I don’t think this is possible. I believe Assignee field expects to get accountId of the user, e-mail is not enough. How does your process look like? Is it possible to use User picker custom field instead of Text field with the e-mail? Thank you.

So how do I convert from email to userid from within an automation?

Hana Kučerová Community Leader Sep 14, 2022

You can try to send request to REST API and find the user. Please look at this article, it is very similar to your problem.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events