Im trying to create an automation that update the tickets fields based on certain conditions
Ex, if summary contain the word "UI" then edit the component field to be set to "UI" Component
Else if summary contain the word "API" do update the component fields to "API components etc"
But i dont see the option to do else if ,
You can't directly add else if conditions, but you can achieve it by using multiple If/Else blocks. Add another If/Else block and in the If part of the new block, add a Condition for "Summary contains" and check if the summary contains the word "API". Add an Action to Edit issue fields, and set the Component field to "API Component".
Hi @Abdallah Ahmed -- Welcome to the Atlassian Community!
Adding to the above answer, please see this documentation to learn how to use the if / else blocks with conditions:
https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#If-else-block
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't find Else option at all. As you see in the screenshot. I can only span multiple IF's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I apologize for the misunderstanding. What I meant to say was that I wanted to add multiple "if" statements.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy @Tuncay Senturk I'm in the same situation as the author. The documentation that Bill linked shows a screenshot of an "IF" branch as well as an "ELSE" branch, but I can't figure out how to get the "ELSE" branch to even show on the designer
If I click "Add component" I can add another "if" condition, but I can't figure out how to branch to "ELSE"
Any tips?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Luke Wisniewski -- Welcome to the Atlassian Community!
Under the Add a component...
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks so much @Bill Sheboy ! For anyone else that's a visual learner like me, here's what Bill is describing. I had previously chosen the {{smart values}} condition
After choosing the item above, I now see the proper else condition
Thanks again! Much appreciated!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are looking for the ...
- IF ...
....
- ELSE-IF <--- adding those conditions
....
- ELSE-IF
....
- ELSE
I found that you only need to "Duplicate" the first condition and a new "Else-If" will appear!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.