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, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events