It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JETI/Notifications & Insight: Use an insight object attribute as an email recipient

This is a bit of a combined question for 2 apps. (Email This Issue (JETI) and Insight).

I have a Request Type that uses several insight custom fields (such as a Department or Application list) which within Insight has an attribute "Manager or Application Owner" which is a JIRA User.


Now when submitting this request I would like to send an email to the manager/application owner of this insight custom field value without having to store it on the request itself.

Something like recipient = application.applicationowner


My question(s) here would be:

- Is this possible using JETI or just regular customer notifications?

- Is there any way in either JETI or notifications to get this information from the Insight object and use it a recipient OR do i need to store the recipient in some kind of hidden field on the request itself? 

This would be my workarround to get the insight object, get the attribute and store it on the issue itself so it can be selected as a recipient (custom field).


Any suggestions/help is welcome.. other plugins that might achieve this also but I would at first like to get this done using just JETI/Customer Notifications/Insight/(Scriptrunner)



1 answer

1 accepted

0 votes
Answer accepted

Hi Dirk.

Have you thought about just using Insight Automation to do this? You can by having automation rules in Insight to trigger notifications. See our documentation here:

Kind regards,

Hi Sandra,

I just read diagonally through the documentation and while interesting I don't believe this would fit my use case.

The Insight automation seems to mainly focus on when a change occurs on an Insight object.

In my case I would simply use the data from Insight in an issue and when an issue is created trigger an email notification using that insight data (being the value in an object attribute as the recipient)

You are correct. 

How about using the Jira workflow to trigger this. Then you would you the Insight post-function "Email user(s) based on attribute in a selected Insight Object".
But this might mean an extra step in your workflow.

Like Dirk Ronsmans likes this

That might be a good one.

I could just add the post function on the create transition and set the condition to the specifc request type.


I'll evaluate this one (but look a valid solution) and otherwise I'll try my workarround by storing the attribute in a customfield and using that customfield in the recipient field of the email.

Like Sandra _Mindville_ likes this

Hi Dirk, 

did the post function fit for you?

We're facing nearly the same situation. We would prefer using JETI for e-mails send, because of e-mail history on issues and better mail-templates. 

Attributes from insight can be rendered within the e-mail body, but not within the reciepient field.

Since the post function can't use the JETI templates we didn't use this method.

Eventually I just stored the recipients data in a "helper" field on the issue type and then used that on the template.


The post function is better if you want to trigger on a change of the Asset itself.

Hi Dirk, 

We copy the user email attribute of insight object to a hidden field by insight post, and then send the message with JETI, because insight's mail function is too simple. However, when using JETI to send e-mail, we can only display the name of the insight object in the e-mail, not the attribute of insight object, which makes us very distressed.Do you have similar needs and any ideas?

@kahn chang 

for us the email attribute on the insight object was sufficient. We just needed to send an email with the data from the issue to the "email attribute". 

We indeed copied this over to the issue in a hidden "insight recipient field" and used it in JETI.

I think the only way to get fully custom and use all kinds of attributes of Insight objects in an email (with JETI) is to use the JETI api.

In a different use case we scripted the email content (or used a template) and sent it with the JETI api.

It's a bit more work but you can send to whoever you want and add a payload of velocity references that a JETI template will resolve.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you