The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events