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 |
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.