Forums

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

Can you display the attribute of an object in an email notification?

Kyle
Contributor
November 15, 2021

I would like to use Automation for Jira to send an email notification. I want to use a smartvalue in the HTML notification to display an attribute of the value of an Insight Custom Field. 

I can only get the Label of the Value of the Object to display. In our case, this doesn't work for us because it is a code. This code in an email does nobody any good as nobody has these memorized.

My Insight Custom Field is "Location".

The label of the Location object is a code, in this case H028-FL01.

(CAMP-63959) is the Insight Object Key. 

I want to display the Attribute of H028-FL01 called "Description". 

I would also like to not display the Key, if possible. 

 

(copied and pasted from an email notification)

Permitter

 

Location

H028-FL01 (CAMP-63959)

Work Window

 

3 answers

2 accepted

1 vote
Answer accepted
David Sumlin
Contributor
November 16, 2021

You currently can't reference an Insight object attribute from automation, but what you can do is to either put that attribute into a dummy field (via a post function) or create a scripted field which displays that attribute, and then use THAT field in your automation/notification.

Kyle
Contributor
November 18, 2021

Thank you, I love these little workarounds... 

1 vote
Answer accepted
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2021

Hi @Kyle ,

As you are using the server version that might not be possible. (On cloud it is documented)

Going by this documentation page https://confluence.atlassian.com/automation/smart-values-993924860.html

image.png

It doesn't look possible yet to retrieve attributes by smart value.

There is however an enhancement ticket for this which you might want to vote on and watch for future changes

https://jira.atlassian.com/browse/JIRAAUTOSERVER-313

Kyle
Contributor
November 18, 2021

Thank you for sharing the enhancement ticket!

0 votes
Gaurav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2021

Hello @Kyle 

As @Dirk Ronsmans mentioned, even I am not sure if this can be achieved on the server but I have performed something similar in a cloud setup.

In our scenario, we have the label value of the Object stored in an Insight custom field and then leveraging Automation, we are reading and storing the attribute value in another custom field. This is performed using smart values.

For ease of set-up, the name of the custom fields has been set up the same as the object attribute name.

The example is as: {{Test_Id.Test_Name}}; where Test_Id is the Label of the Insight Object and Test_Name is the attribute.

I would suggest you try this on the server and share your findings.

Kindly accept the answer if this helps.

Kyle
Contributor
November 18, 2021

I tried this in server and it is not yet available....

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.15.0
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events