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

Alert automation - IntegrationBean object

Adam Pearson November 19, 2024 edited

I'm working on an alert automation that switches based on the integration the alert was created with.

When I log {{alert.integration}} within a rule I get an object like this:

IntegrationBean{id=[UUID removed as I'm not sure if this is safe to share], type=API, name=Jenkins API Service Desk}

I would like to retrieve just the 'name=' portion of this object, I have tried the following...

{{alert.integration.name}}

{{alert.integration.IntegrationBean.name}}

{{alert.integration.asJsonStringArray}}

{{alert.integration.substringBetween("name=","}")}}

 

None of these log anything, though the rule succeeds it logs an empty string.

Does anyone know how to acces the individual values in the IntegrationBean object?

1 answer

1 accepted

1 vote
Answer accepted
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.
November 19, 2024

Hi @Adam Pearson -- Welcome to the Atlassian Community!

Here are the documented smart values for the {{alert}} with the alert-related rule triggers for JSM: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-alerts/

I hypothesize some of these may be dynamically accessed, and so if you need to use them in more complicated expressions they may need to be saved with Create Variable first.

Kind regards,
Bill

Adam Pearson November 19, 2024

Thanks!

after creating a variable I tried the substringBetween method on the variable instead, and this worked!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
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