Forums

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

Set assignee by email address within automation action

Bryan Meyerovich September 10, 2022

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?

2 answers

0 votes
Janusz Bułakowski August 25, 2023

ok

0 votes
Hana Kučerová
Community Champion
September 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.

Bryan Meyerovich September 11, 2022

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

Hana Kučerová
Community Champion
September 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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events