Notifications automation
Asked by Dokic_ Djordje:

Hi all,

I have a following automation which should trigger an e-mail notification being sent to a reporter if ticket has no attachments, but it doesnt seem to work, as no notification is being sent to a reporter, or others...

The first part works, but the second ("else") doesnt... And it should be working (as if there is no attachment in the issue, it should send an e-mail to the reporter.)

![If statement.png](/t5/image/serverpage/image-id/163272iEC8F23F64A23CA34/image-size/large?v=v2&px=999 "If statement.png")


Answers:
author: Jack Brickey
body: Hi [@Dokic_ Djordje](/t5/user/viewprofilepage/user-id/4579352) , can you look at the email audit log and assess why the email is not issued?

comments: author: Jack Brickey
body: Regarding your automation error, did the issue get assigned to the user triggering or not? If not could you try to reorder your automation to assign before the transition?

regarding the error associated with the manual transition can you share your validation details. I suspect you are requiring an attachment during transition vs. simply requiring the existence of an attachment.


author: Dokic_ Djordje
body: Hi Jack and thanks!

The automation error was resolved by re-ordering.

Regarding the validation - please find attached screenshots. Ive also found a workaround for this by adding a transition screen, but then it would require user to RE-add the attachment again, even if he did so in the initial creation step.

![Attachments issue - VALIDATOR - JIRA.png](https://community.atlassian.com/t5/image/serverpage/image-id/163535iF7D15D13A34E1F9F/image-size/large?v=v2&px=999 "Attachments issue - VALIDATOR - JIRA.png")


author: Jack Brickey
body: This Validator requires that you update the field during the transition which is made clear in the text of your image. Generally you use Conditions to prevent a transition if a preexisting condition is not met. You can setup as follows...

![CC76425B-16AC-4A32-97DD-FBCEEBE83BD0.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/163539iFDEA16328ECB497A/image-size/large?v=v2&px=999 "CC76425B-16AC-4A32-97DD-FBCEEBE83BD0.jpeg")

use the "!=" operator and leave value field blank.


author: Dokic_ Djordje
body: Hi [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) ,

the method mentioned works and it solves the "validation" properly :) (like i responded above), however it doesnt indicate to the user why he cant switch a status which would be nice.


author: Jack Brickey
body: correct. conditions are silent.


author: Dokic_ Djordje
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148) and [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) ,

ive rebuild the automation , and mail-sending works, but now ive got the following error message in the log (please see a screenshot).

<br />

Ive also tried to add a validation in the transition displaying a message if there is no attachment, but in that case - even if there IS an attachment - message is displayed and system reverts the status to "TO DO", which shouldnt be the case (Second attachment). Ive reported it on <https://getsupport.atlassian.com/servicedesk/customer/portal/23/JST-697775>

P.S.-sorry for trouble but ive set everything else beside this, and its my third day on JIRA Workflow :)

![Field issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/163480i19C91BAFEC12A5CB/image-size/large?v=v2&px=999 "Field issue.png")![Attachments issue - JIRA.png](https://community.atlassian.com/t5/image/serverpage/image-id/163481i91111FC19CCFDCB6/image-size/large?v=v2&px=999 "Attachments issue - JIRA.png")


author: John Funk
body: Hi [@Dokic_ Djordje](/t5/user/viewprofilepage/user-id/4579352) - are you getting an error? Is it passing the second condition?

Can you post a screenshot of the audit log for the rule?

comments: author: John Funk
body: You shouldn't have a validator AND try to send an email based on the validator failing. That's going to give you problems.


author: Dokic_ Djordje
body: I see... And yeah, it was giving problems, however - i presume when something is validated and denied, we should be able to inform the user, weather via direct message or an e-mail.  
In this case, Jacks method of using the "!=" string - condition during transition works, however user cant see a reason why he can not switch a status.


Tags: cloud