Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation Rule - How do add customer email id from description to reporter field in same ticket

Sateesh Dara December 1, 2023

I wanted to create an automation rule through which I add customer email id from description to reporter field in same ticket.

Right now I have below rules. Adding customer email to customers list working fine.

Customers List.jpg

But retrieving this email from list of customers and adding to same ticket as Reporter is not working.

Rule.jpg

Error as

Error-AddingReporter.jpg

2 comments

Sateesh Dara December 1, 2023

I have used below Web Request URL:

https://<domain>.atlassian.net/rest/servicedeskapi/servicedesk/<project>/customer?query={{automation1@gmail.com}}

Sateesh Dara December 3, 2023

It worked for me by creating two rules as below:

Adding Customer to SD list:
=============================
When issue created
Then: Add new customer
Email - {{issue.description.match("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)")}}

Customer Email as Reporter:
==============================
When issue scheduled
JQL - project = <KEY> AND reporter = 63060a487cedcad7664d9f9e AND status != Done
Uncheck - Only include issues that have changed since the last time this rule was executed (Better to keep this unchecked)
Then: Edit issue fields
Choose fields to set - reporter
Additional fields:
{
"fields": {
"reporter": {
"id": "{{issue.description.match("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)")}}"
}
}
}

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events