Forums

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

Trying to Automate pulling an email address and assigning a work item to that individual

Brandon Drucker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2026

In the 'description' of this automated work item is the email address of the person assigned to the task. This doesnt really do us any good so I'm trying to automate a way to extract this information and select this person as the 'Assignee' drop down box under the 'Details' section. I havent had much luck and I'm looking for some help here.

jira automation issue.jpg

Things Ive tried:

I tried creating a variable to extract the Email

{{issue.description.match("Engineer/Supervisor/Drafter: ([A-Za-z0-9:;_. -/&#]+).*@")}}

and then assign the work item to that smart variable

{{extractedEmail}}

 

I also tried to do an advanced branch to extract the employee ID from that email

{{lookupIssues.extractedEmail.accountId.distinct}}

and then assign the work item to that smart variable

{{employeeID}}

 

 

1 answer

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
May 14, 2026

Hi Brandon,

The first thing you mention above should work. Add a Log action after you create the Variable to see what value it has, if any. Also, do an Edit work item to update the Assignee field, and not an Assign work item action. 

Brandon Drucker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2026

Hi John,

 

Doing an edit work item gives me these options, none seemed relevant so thats why I did an assign work item. Where do I go from here?

 

Thanks

edit work item.jpg

John Funk
Community Champion
May 14, 2026

You just type the variable directly in the box - {{extractedEmail}}

Brandon Drucker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2026

I got it

Thank you for the help John! I did have to change my coding for the email extraction to:

{{issue.description.match(".*Engineer/Supervisor/Drafter: (\\S+).*")}}

The one I inputted wasnt pulling anything from the "@" onward.

Like John Funk likes this
John Funk
Community Champion
May 14, 2026

Nice job! Glad it is working for you.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events