Forums

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

I can't find "else if" in Jira automation,

Abdallah Ahmed October 17, 2024

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 ,


jira.PNG

1 answer

4 votes
Tuncay Senturk
Community Champion
October 17, 2024

Hi @Abdallah Ahmed 

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". 

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.
October 17, 2024

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

Abdallah Ahmed October 27, 2024

I can't find Else option at all. As you see in the screenshot. I can only span multiple IF's 

Tuncay Senturk
Community Champion
October 27, 2024

I apologize for the misunderstanding. What I meant to say was that I wanted to add multiple "if" statements.

Luke Wisniewski
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!
January 29, 2025

@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
JiraIfElse.png
If I click "Add component" I can add another "if" condition, but I can't figure out how to branch to "ELSE"
JiraAddComponent.png
Any tips?

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.
January 29, 2025

Hi @Luke Wisniewski -- Welcome to the Atlassian Community!

Under the Add a component...

  • Select IF: Add a condition
  • Under that you will find: IF or ELSE: Add condition options
  • Once that is added, you may add the conditions for one or more cases
  • At the end of the block, you will find the section for ELSE

Kind regards,
Bill

Luke Wisniewski
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!
January 30, 2025

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
JiraIfElseSolution.png

After choosing the item above, I now see the proper else condition
JiraIfElseSolution2.png

Thanks again!  Much appreciated!

Like Bill Sheboy likes this
Tomeu Ozonas
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!
March 27, 2025

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!

iScreen Shoter - Google Chrome - 250327142550.png

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