Forums

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

1 rule

Aykan Inal
Contributor
April 21, 2022

Hello there
I need help with 1 rule
If a mail with the subject "abc project" comes from test.user1@gmail.com and test.user2@gmail .com mail addresses, open it in this ticket for abc project  category

1 answer

0 votes
Jack Brickey
Community Champion
April 21, 2022

Hi @Aykan Inal , I'm sorry I'm not completely following you here. It seems that you are trying to create an automation rule, correct? Please note that there isn't a trigger specifically associated with an incoming email. The trigger can be done based on some update to a specific issue. Maybe you are asking for is something like below?

2022-04-21_10-03-06.jpg

Aykan Inal
Contributor
April 21, 2022

yes, how to ?

a request record will be created by e-mail

Posted by user 1@gmail.com  or  user2@gmail.com

and the word "test wor1" or "test word" is mentioned in the post subject

Aykan Inal
Contributor
April 21, 2022

Hi @Jack Brickey 

A ticket will be created by mail.

from abc1@gmail.com or abc2@gmail.com

and its subject
"abc project" or "def subject"

how do i create this rule

Jack Brickey
Community Champion
April 21, 2022

Are you saying that when an issue from user ABC1 or ABC2 is created via the email channel then you want to take some action? If so what action are you wanting to take?

2022-04-21_10-37-37.jpg 

Aykan Inal
Contributor
April 21, 2022

hi  @Jack Brickey 

 issue from user ABC1 or ABC2 is created via the email channel

 

and  mail subject  =  issue summary

user 1  or user2 sending   mail

subject "abc" or "def" or "ghi" or "jkl"

opens  alfabe category and assigned  user

 

how to

Jack Brickey
Community Champion
April 21, 2022

Hi @Aykan Inal ,

have you begun to set up the rule yet? please give it a go starting from what I have shared and adjust to meet your needs. Come back here when you get stuck. You can use a JQL for much of the conditions, e.g.

request-channel-type = email and reporter in (abc1, abc2)

I am confused by the following...

mail subject  =  issue summary - The subject of the email used to create the issue will always equal the Summary since the subject is used to create the Summary.

subject "abc" or "def" or "ghi" or "jkl" - I do not understand

opens  alfabe category and assigned  user - I do not understand

Aykan Inal
Contributor
April 21, 2022

hi  @Jack Brickey 

 

I guess I couldn't explainn 
Iam sorry

 


sample scenario

It will be created via email channel abc1@gmail.com or abc2@gmail.come

abc1 or abc2 subject of sent email
If it contains the words "one" or "two" or "three", assign the request to this person

 

how to

Aykan Inal
Contributor
April 23, 2022
Jack Brickey
Community Champion
April 23, 2022

I think things are getting lost in translation a bit.

Which of the following is true?

  1. the email channel is one of abc1@gmail.com or abc2@gmail.com. That is, users send an email to one of these email addresses to create issues, or...
  2. abc1@gmail.com or abc2@gmail.com represent Customers that are raising an issue via your project's email channel

If #1 is true, can you explain how you have two custom email channels for a single JSM project? Maybe these are from different projects?

Next questions - you mention "If it contains the words "one" or "two" or "three", assign the request to this person". What does "it"  refer to? The subject of email (Summary) or the body of the email (Description)? Who is "this person" that you want to assign the issue to?

finally, have you attempted to construct the rule? Maybe you could share what you have thus far?

From what I can tell at this point here is what you are attempting to do...

Trigger - When issue created

Condition - Reporter = xxxxx

Condition - Issue was issued via email channel (not portal or application)

Action - assign issue to xxxxx

if that is incorrect please use the above as a template to present your precise goal

Aykan Inal
Contributor
April 23, 2022

Hi @Jack Brickey 

 

trigger :  abc1@gmail.com or abc2@mail.com ( this is customer  mails)

Condition:  contains the words "one" or "two" or "three"

Action:  assigned    supportuser1

Jack Brickey
Community Champion
April 23, 2022

Hi @Aykan Inal ,

the trigger needs to be an event not a user‘s email, that will be a condition.

so automation will look like this …


trigger - issue created

condition - reporter equals abc1 or abc2

condition - issue summary contains “one" or "two" or "three"

action - edit issue Assignee = supportuser1


if you look at some of the images I previously posted you should be able to get the automation set up. Let me know if you get stuck. 

Aykan Inal
Contributor
April 23, 2022

@Jack Brickey 
I tried to explain what I wanted to do in simple sentences.

Very  thanks for help 

 

There are 2 customers
customer1@gmail.coom and customer2@gmail.com email addresses

This customer creates a request by sending an email.


If the subject of the email sent by customers contains the word "keyboard" or contains the word "mouse", allow it to be registered as the hardware request type and assign the user tchnl1.

Jack Brickey
Community Champion
April 23, 2022

Ok then my input above should be what you need then. Please construct your automation rule and let me know if you get stuck. 

Jack Brickey
Community Champion
April 24, 2022

Hi @Aykan Inal , two options I think. 

option 1: use If/Else and repeat your condition/action for each email. 
option 2: this should work I think but I have not tested. Use JQL with smart values like below...
B9505A24-2D97-406F-BD06-9C1E95BD106A.jpeg
D6FA04EC-629E-4AE4-97CA-C7D979B5D90F.jpeg

Aykan Inal
Contributor
April 24, 2022

@Jack Brickey  
How to option 2? 

help please

Jack Brickey
Community Champion
April 24, 2022

Sorry missed the image. See above

Aykan Inal
Contributor
April 24, 2022

I understand now
I will test and let you know

Like Jack Brickey likes this
Aykan Inal
Contributor
April 24, 2022

@Jack Brickey
I guess it didn't

please  controle !

 r1.pngr2.png

Jack Brickey
Community Champion
April 24, 2022

Can you leas view the log file when the rule ran to see the cause?

Aykan Inal
Contributor
April 24, 2022
Jack Brickey
Community Champion
April 24, 2022

Rather than a JQL for the second condition use the "Issue fields condition". Choose Summary for the Field, Contains for the Condition and enter your desired values.

Aykan Inal
Contributor
April 24, 2022

how to ? @Jack Brickey 

Jack Brickey
Community Champion
April 25, 2022

ignore the automation stuff on the left just reference the "Issue fields condition"

8C2EFC68-6069-445A-A412-0F6A26822727.jpeg

Aykan Inal
Contributor
April 25, 2022

hi @Jack Brickey  very thnaks for help
but not running

how to solve ?
r6.png

Jack Brickey
Community Champion
April 25, 2022

@Aykan Inal ,

Please try the below solution. I switched out to using JQL for both conditions. Please ensure that you have quotes around the emails as shown. 

2022-04-25_12-43-42.jpg

I tested this rule and it work successfully. Hopefully this will work for you and you can modify it further as needed to meet your needs.

Aykan Inal
Contributor
April 25, 2022

hi @Jack Brickey 

very thanks its run  problem solved

 

I have another question

I want to create 1 group

A support group of 2 or 3 people

and i will assing requests to this group

how can i create a group

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events