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.
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}}
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.