Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Automation - How to compare baseurl in advanced compared condition

Boofem March 27, 2024

I have my automation rules written in production , however its getting copied to my Testing environment and end up creating false alarms to audience.

So I'm trying to do a condition check using two options , Both not working

1. To check for {{baseurl}}  before triggering the alarms to audience.  

2. To check for {{issue.url}} starts with "https://jira.perf

Screenshot 2024-03-27 at 3.25.21 PM.png

1 answer

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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.
March 27, 2024

Hello @Boofem 

Smart value is just {{baseUrl}} , not {{issue.baseUrl}}.

Please log it first to verify and then include that in your If condition.

Boofem March 27, 2024

Screenshot 2024-03-27 at 3.43.48 PM.png

Boofem March 27, 2024

I tried baseURL as well , its getting logged and printed correctly but the Advanced compare condition is not working :(

Kalyan Sattaluri
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.
March 27, 2024

You can check against a known part of the URL.

For example, extract string before abc.com like below:

{{baseUrl.substringBefore(".abc.com")}}

and then check if that equals 

https://jira.perf

worked when I tested locally.

 

image.png

Like • Boofem likes this
Boofem March 27, 2024

You are Awesome! It works like a charm. THANK YOU SO MUCH!!!

Kalyan Sattaluri
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.
March 27, 2024

Awesome. Please consider accepting answer so it benefits others. Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events