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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.