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

Hearthbeat alert details access

Romain Bariatti August 29, 2023

Hello,

We can see that alerts created from hearthbeat contains 2 details keys: "Heartbeat Name" and "Last Received At".

We try to access those keys from the JIRA intergation to pass them into the JIRA issue. However we have an error triggered when trying to access them such as "{{details.Hearthbeat Name}}":
Substitution error: Exception: Substitution of h4. Details h5. Hearthbeat name {{details.Heartbeat Name}} for key [description] failed: Encountered " Name}" at <unknown template>[line 3, column 20] Was expecting one of: "[" ... "}" ...



We tried to add the fields within quote, convert them to CamelCase without success.

How can we use those two keys `?

Thanks

1 answer

Talar Pavlovic
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2023

Hi there Romain, 

Thanks for writing into Community, I'm Talar from the Atlassian Statuspage support team, happy to help!

As you mentioned, the fields aren't coming through in camelcase, meaning the expected "{{details.heartbeatName}}" isn't pulling out the data required. I have raised this with our Engineering team for them to take a look at. 

However, we can still extract the data required via some String Processing Methods. Documented here, we have a few options we can use. 

Having a look at the fields you'd like to extract you can use the following: 

Heartbeat Name:

{{details.extract(/.*/).substringBetween("Heartbeat Name=",",")}}

Last Received At:

{{details.extract(/.*/).substringBetween("Last Received At=","}")}}

Hope this helps!
Talar

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events