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

ExtraProperties - Extract one and add to description

Mark Hayter March 17, 2023

Hi

In our extra properties we have an ID, SYS_ID

I want to use a policy to state that when an alert comes in, extract that extra property value and add it to a URL so the user can click on it

eg

ExtraProperties

SysID 1234

IN Policy, extract and in {Description} add www.myURL.com?id={extraproperties:sysIDValue}

Is that possible?

1 answer

0 votes
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2023

Hi @Mark Hayter ,

That should be possible with something similar to the URL you shared above. This Community Article might help with extracting the extra property / field: How to Extract Custom Fields and Data into an Alert

Once you are able to determine what is needed to extract that field, you can add the URL into the description field of the alert - which can be done under the Advanced tab of an integration. Note this tab is only available on the Standard and Enterprise / JSM/O Premium and Enterprise plans.

Mark Hayter March 19, 2023

Thanks. So how would I know what the name of the extra property is and what the syntax is to use that and add to the description of an alert?

Mark Hayter March 19, 2023

Is there a way to do it all within the ui without having to find out what the custom field name is in the api

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 20, 2023

"How would I know what the name of the extra property is and what the syntax is to use that and add to the description of an alert?"

It would depend how the field is being parsed in the payload. 

 

"Is there a way to do it all within the ui without having to find out what the custom field name is in the api?"

You can check the Logs tab, but sometimes logs will be truncated - so it's best to extract the entire payload into the alerts to 1) see if your custom field is even being parsed in the payload, and 2) give you an idea of what syntax is needed to extract it.

 

I would suggest reviewing the Article linked in my last response as this is all covered in it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events