Forums

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

How to add 2 conditions at once in jira automation rule trigger?

Roopa V December 11, 2023

I want a rule to be triggered when an issue is created or issue is updated

4 answers

2 votes
Antuan Sammak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2023

Hi @Roopa V 

 

Welcome to the Atlassian Community!

 

under the triggers, search for Multiple issue events, that should answer your question.

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2023

Hi @Roopa V -- Welcome to the Atlassian Community!

Adding to the answers from others, you could use the Multiple Issue Events trigger.

However, the specifics of whether this would / would not work for your scenario depend upon what you are trying to do.  (e.g., I recall there are some edge cases where an issue create (or update) leads to an an update, which would then trigger the rule multiple times.)

I recommend trying to create your rule and thoroughly testing to ensure it does what you expect.  If you run into challenges and want assistance, please post images of your complete rule, the audit log details, and explain what is not working as  you expect.

Kind regards,
Bill

1 vote
Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2023

Hi @Roopa V 

Yes, with the Multiple issue events trigger. 

 

Screen Shot 2023-12-11 at 2.15.10 PM.png

 

Best,

Murat Seven

 

0 votes
Roopa V December 11, 2023

Hi All,

Thank you for your response. Multiple Issue Events trigger helps me in this case. But in the next step, I want to send a message(different message for issue creation and issue update) to teams channel for each case. I need help to achieve this.. Tried adding condition, but didn't find any field to check in the first step whether the issue is created or updated...

Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2023

Hi @Roopa V ,

You're looking for a condition that specifies which the Multiple Issue Events trigger is activated. Although this might not be the best approach, you can use a smart value for this purpose.

{{changelog.Create Tasks}}

An automation example containing if-else statements based on the smart value will also assist you.

Screen Shot 2023-12-12 at 10.38.46 AM.png

Best,

Murat

Like Roopa V likes this
Roopa V December 12, 2023

Hi Murat,

Thank you for your suggestion. It didn't work for issue update. Even for just an update for a given issue, it's sending mail as issue created. Plz suggest your inputs what change is required here.

Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 12, 2023

Hi @Roopa V 

Could you send a screenshot of your automation rule? I just tested it again, and it seems to be working fine. If there's an issue with sending incorrect emails, you might need to add an additional condition for that.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events