You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi all,
I want create a rule that will automatically choose a company name in CRM created field depending on domain of reporter (@testdom.com)
1 I don't know how to find Reporters whose emails contain @testdom.com in Advance Compare Condition
2 I cant choose field Company in New Action-> Edit Issue-> Choose fields to set
it doesn't appear in the list
I'd be grateful for your suggestions.
Anna
Hi @Anna Grace
After a few attempts I managed to create a rule to change the value of your CRM field, based on the email domain of the reporter (you know that this app has the ability to sync users to companies, right?):
The first thing that you want to do, is to get the ids of the companies you create:
Create the following rule and use as many "Else" statement as you want
To distinguish among domains, use the following smart value
{{issue.reporter.emailAddress}}
which should contains the "@domain.com" you want
The Add an edit issue component and instead of using the fields from the dropdown menu, use the advance edit and write:
{
"fields": {
"customfield_10245": 301462
}
}
where customfield_10245 is your Company field and 301462 is the corresponding id of the @domain.com
I've tested it on my instance and works like a charm.
Let me know if you got this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
Just a short note .
We noticed, that automation rule doesn't work for reporters, that are new for Jira.
FIrst request to support from unknown email - ignore
Second request - rule works.
thank you.!
Anna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Anna Grace what do you mean doesn't work? What is the email domain of these users? Are they already added to the project before creating an issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras _Relational_ if the email comes from our existing client (who has sent something to us in the past) then the rule works, but if it's a new email for system -it doesn't.. we also checked it sending emails from @gmail. The rule didn't execute for the firrst email.
But fortunately it doesn't happen often
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If a customer is not added to a project, then if he/she sends emails to the dedicated JSM email handler, then this email will bounce. You have to add the customer first to the project and then he/she will be able to send emails.
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.