Forums

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

Assign issue from text field email

Roshan Vislavath March 27, 2021

Hi, 

I have a text field with email value, I am trying to assign an issue based on the email in the text. 

I have also tried with the Automation rule which is not assigning the issue 

 

Any help appreciated,

Thank you,

Roshan 

2 answers

0 votes
Thorsten Letschert _Decadis AG_
Atlassian Partner
March 31, 2021

Hi @Roshan Vislavath ,

while it's not possible to 'translate' the email address automatically, you could go for branch rules (if we're only talking about a small number of possible - and future - assignments since this will obviously not scale), e.g.

  • Your trigger
  • Branch rule #1
    • Condition - text field equals/contains john@doe.com
    • Action - assign to user john.doe
  • Branch rule#2
    • Condition - text field equals/contains im@doe.com
    • Action - assign to user jim.doe
  • etc.

Cheers
Thorsten

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2021

How is your automation looking up the email address for the user you want to assign to?

Roshan Vislavath March 28, 2021

I have used the smart value {{issue.customfield_id}}, which will look up from the text field and assign issue based on that 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2021

OK, that will fetch an email address, which is nothing more than a block of text.  

You're going to need something a bit more clever to read the email address and search for it amongst your people's accounts, and effectively translate it into an (assignable) user id for the assignee field.

Roshan Vislavath March 28, 2021

correct Nic,

Is there any solution for this?

This is a show stopper, any workaround on this issue, also open to implementing this functionality with the plugin too

 

Thanks!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 29, 2021

You will need to code for this new functionality.  I'm not sure you can add a function t automation with a an app, but you could replicate all of what it is doing and include your mapping code in an app, replacing the automation.  Or use one of the scripting apps (obviously, I'd use Scriptrunner here)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events