Forums

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

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, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events