Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Jira Automation If/Else


I am trying to setup a Jira Automation with and If/else statement. 

What I want to do is:

IF a comment is added by anyone except for a certain user then send an email notification to the assignee. 

1 answer

2 votes

@Dexter Brooks -

Welcome to the community.  If I understand your ask correctly, then you may not need to use if/else block.  You should be able to use the conditional check for "User condition" (something like below) -


However if you want to use if/else setup, then you will just add the "User condition" as a part of the If/else setup (something like below) -


After the condition setup, you just need to add in the Actions as needed.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Thanks for the quick response. Basically we use Opsgenie for alerting and when a customer submits a ticket we also have to acknowledge the ticket in the Opsgenie. When we acknowledge the ticket Opgenie makes a comment on the ticket from our helpdesk account. I want to exclude email notifications for comment from Opsgenie/our Help Desk Account. Does that make more sense?

@Dexter Brooks -

In our env, we don't use Opsgenie, thus I cannot advise further after your clarification.  I would recommend you to contact Atlassian Support ( for their technical assistance or possible solutions.

Best, Joseph

@Joseph Chung Yin Please disregard the Opsgenie portion of my post. All I need to is create an automation that send a email when a comment is made on a service request but just need to exclude when a comment is made by a specific user. 

@Dexter Brooks -

It is then extremely simple... here is the rule for you to try


Hope this helps.  Please click on Accept Answer when you have a chance.

Best, Joseph

How do I do the exclusion part? So if a comment is made by JIRA user "A" it won't send an email notification. 

@Dexter Brooks -

You just need to add in the User condition as I mentioned earlier in this thread by using a if condition check for issue type and user condition.

Hope this helps.

Best, Joseph

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

251 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you