Forums

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

Email This Issue failed to create issue with condition

Juno Ng
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2020

I want to use Email This Issue to create issues with different request type based on the appearance of certain keywords on the email subject.

 

I set two if statements on the incoming mail handler:

If the subject contains 'test', then create issue with request type A in Project X

If the subject contains 'demo', then create issue with request type B in Project X

If the subject contains 'sample', then create issue with request type C in Project X

Screenshot 2020-04-01 at 9.24.11 PM.png

The result is that:

1) If the email subject contains 'test', issue with request type A in Project X will be created without problem

2) if the email subject contains 'demo', the issue failed to create

3) if the email subject contains 'sample', the issue failed to create

Screenshot 2020-04-01 at 9.23.50 PM.png

 

It would fail to create the issue if the first statement failed and the successful statement is creating an issue in the same project as the failed statement (i.e. in this case, both are creating at project X).

It would create the issue successfully if the successful statement is the first statement, or if the issue is created in a different project than the failed statement.

1 answer

1 accepted

0 votes
Answer accepted
Juno Ng
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2020

Turn out it is caused by the required field of the request type. There should be no required fields other than summary and description.

Suggest an answer

Log in or Sign up to answer