Forums

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

Set a field value based on the reporters domain - Automation

Steve Fell March 3, 2021

Evening

We receive issues from reporters from various domains.

We have field called Company and need to create an automation that sets the this field to a value based on their domain when the issue is created.

For example if their domain is @[deleted].com then the Company field would be set to ABC.

Any help is appreciated.

Cheers

2 answers

1 accepted

0 votes
Answer accepted
Laurens Coppens
Community Champion
March 4, 2021

Steve,

I'm afraid this won't work with automation because of its limitations.

You can't run groovy scripts or do a lookup on domain.

I think the best way to do this would be to run a groovy script with scriptrunner on the create transition of the workflow that copies the values of the users email address from after the @ till before the .

 

Hope this points you in the right direction.

Regards,

Laurens

Steve Fell March 8, 2021

Thanks for your help

Suggest an answer

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

Atlassian Community Events