JETI Notification - How to trigger "create issue", "close issue" events (Data Center)

Atlassianist
Contributor
July 8, 2023

Hallo, 

we have set up some event notification and the working ones are:

  • update 
  • comments

We have not managed to get notifications about

  • create
  • close 

 

We have the following questions:

#1. is it generally needed to deactivate the jira internal agent and client notifications or these can be active together with the JETI notifications?

#2, We have set up each notification for ONE recipient:

notifications_create_client.png

 

There are some events where we have set up one rule for reporter and one for assignee ... I think it should be done on this way or it could work if one rule has more recipients reporter and assignee?

#3 we have created the notification as follows:

notifications_templates.png

 Questions:

1. should each notification an unique sequence number?

2. do we have to insert all the notifaction templates we would like to use for automatic notifications in the field "template categories" or these are meant o use at manual e-mails only?

 

#4 The mails are created here by the default reporter of JETI and the actual reporter id the Service User. Does JETI takes care of this aspect If we set up a notification for the reporter? It would be optimal if JETI would inform the original Reporter and the technical user which has technically created the ticket.  

 

Thank you very much for answering our question. 

We have to use JETI Notification within 2 days, It would be vital to set up them correctly. 

 

Best regards

I. 

 

5 answers

0 votes
Atlassianist
Contributor
July 9, 2023

As I have checked the logs I have found the following errors and warnings:

2023-07-09 01:42:12,026+0200 http-nio-8080-exec-19 ERROR Admin 102x483026x1 phyhvr 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [c.m.j.p.emailissue.action.EmailOptions] Property 'recipientsToAddAsRP' has no setter method in class 'class com.metainf.jira.plugin.emailissue.action.EmailOptions'
java.lang.NoSuchMethodException: Property 'recipientsToAddAsRP' has no setter method in class 'class com.metainf.jira.plugin.emailissue.action.EmailOptions'

and 

2023-07-09 01:42:12,030+0200 http-nio-8080-exec-19 WARN Admin 102x483026x1 phyhvr 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method getbccEnabled from object of class com.sun.proxy.$Proxy5582 due to security restrictions. 
0 votes
Atlassianist
Contributor
July 8, 2023

As I have checked the JIRA Logs I have found the following references to a security restrictions: 

2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method getpopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method getPopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method get from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method ispopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method isPopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method getpopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method getPopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method get from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method ispopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:12,491+0200 http-nio-8080-exec-23 WARN Admin 1064x479099x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiEditNotificationEvent.jspa [velocity] Cannot retrieve method isPopupGroupPicker from object of class com.sun.proxy.$Proxy5582 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method getname from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method getName from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method get from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method isname from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method isName from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,650+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method getdisabled from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,651+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method getDisabled from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,651+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method get from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,651+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method isdisabled from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,651+0200 http-nio-8080-exec-4 WARN Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [velocity] Cannot retrieve method isDisabled from object of class com.sun.proxy.$Proxy5679 due to security restrictions.
2023-07-08 17:44:34,716+0200 http-nio-8080-exec-4 ERROR Admin 1064x479133x1 x42qtz 172.30.32.19,172.30.4.95 /secure/admin/jeti/jetiNotificationEvents.jspa [c.m.j.p.emailissue.action.EmailOptions] Property 'recipientsToAddAsRP' has no setter method in class 'class com.metainf.jira.plugin.emailissue.action.EmailOptions'
java.lang.NoSuchMethodException: Property 'recipientsToAddAsRP' has no setter method in class 'class com.metainf.jira.plugin.emailissue.action.EmailOptions'
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2097)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:928)
at com.metainf.jira.plugin.emailissue.action.EmailOptions.<init>(EmailOptions.java:158)
at com.metainf.jira.plugin.emailissue.entity.entity.NotificationEventImpl.getEmailOptionsObject(NotificationEventImpl.java:122)
at jdk.internal.reflect.GeneratedMethodAccessor66336.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at net.java.ao.EntityProxy.invoke(EntityProxy.java:107)
at com.sun.proxy.$Proxy5680.getEmailOptionsObject(Unknown Source)
at com.metainf.jira.plugin.emailissue.entity.converter.NotificationEventEntityDtoConverter.convertEntityToItemDto(NotificationEventEntityDtoConverter.java:43)
at com.metainf.jira.plugin.emailissue.entity.converter.NotificationEventEntityDtoConverter.convertEntityToListItemDto(NotificationEventEntityDtoConverter.java:51)
at com.metainf.jira.plugin.emailissue.entity.converter.NotificationEventEntityDtoConverter.convertEntityToListItemDto(NotificationEventEntityDtoConverter.java:10)
at com.metainf.jira.plugin.emailissue.entity.converter.ServerEntityDtoConverter.convertAllEntityToListItemDto(ServerEntityDtoConverter.java:15)
at com.metainf.jira.plugin.emailissue.action.config.NotificationEvents.filterForIssueEventNotifications(NotificationEvents.java:209)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374)
at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:28)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.directive.Parse.render(Parse.java:263)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)
at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBodyImpl(DefaultVelocityManager.java:117)
at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBody(DefaultVelocityManager.java:97)
at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.toWriterImpl(DefaultVelocityTemplatingEngine.java:122)
at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:113)
... 4 filtered
at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
... 48 filtered
at com.atlassian.servicedesk.internal.web.ExternalCustomerLockoutFilter.doFilter(ExternalCustomerLockoutFilter.java:55)
... 4 filtered
at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:56)
... 7 filtered
at com.atlassian.jira.plugin.mobile.web.filter.MobileAppRequestFilter.doFilter(MobileAppRequestFilter.java:59)
... 4 filtered
at com.atlassian.jira.plugin.mobile.login.MobileLoginSuccessFilter.doFilter(MobileLoginSuccessFilter.java:54)
... 3 filtered
at com.atlassian.diagnostics.internal.platform.monitor.http.HttpRequestMonitoringFilter.doFilter(HttpRequestMonitoringFilter.java:54)
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 48 filtered
at com.atlassian.oauth2.scopes.web.ReadWriteScopeFilter.doFilter(ReadWriteScopeFilter.java:46)
... 3 filtered
at com.atlassian.troubleshooting.thready.filter.AbstractThreadNamingFilter.doFilter(AbstractThreadNamingFilter.java:46)
... 21 filtered
at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
... 1 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
... 16 filtered
at com.atlassian.pats.web.filter.TokenBasedAuthenticationFilter.doFilter(TokenBasedAuthenticationFilter.java:82)
... 3 filtered
at com.atlassian.oauth2.provider.core.web.AccessTokenFilter.doFilter(AccessTokenFilter.java:81)
... 26 filtered
at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
... 5 filtered
at com.atlassian.plugins.authentication.impl.basicauth.filter.DisableBasicAuthFilter.doFilter(DisableBasicAuthFilter.java:70)
... 3 filtered
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:220)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:136)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:89)
at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:47)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:211)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:139)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:128)
... 4 filtered
at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:37)
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 4 filtered
at com.atlassian.troubleshooting.thready.filter.AbstractThreadNamingFilter.doFilter(AbstractThreadNamingFilter.java:46)
... 3 filtered
at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
... 29 filtered
at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
... 25 filtered
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
0 votes
Atlassianist
Contributor
July 8, 2023

As I have thought that by JETI provided "reporter" field is not equal to the german "autor" field where I see generally the senders mailadress ... I have just now created a new user defined field "client". This very same field has been chosen in the incoming JETI mailhandler to save the senders mailaddress in and in the outgoing mailhandler of the notifications to take the address from.

Result:

If the mail adress "xyz@maildomain.com" has been taken from the field "client" it has not worked. If I set the mailaddress explicitly in the notification for "issue create", it has worked. 

Strange ...

Perhaps there are some permission issues, disallowing JETI to take the address ...

0 votes
Atlassianist
Contributor
July 8, 2023

I have also tested with some explicitly set destination e-mail adresses. In this case there has been no issue with the notification. 

This means that JETI does not get the correct information If I swould like to send to "reporter" ..

As I see, JETI cannot take the senders information from the system field "Author" where the e-mailaddress is indicated in the ticket. 

0 votes
Atlassianist
Contributor
July 8, 2023

Some edditional Information:

If I send an e-mail as agent to the JIRA SM Project and I create a ticket on this way I receive a JIRA internal notification as reporter. I do not receive no notification from the JETI Plugin, even though Everything seems to be configured correctly. 

The clients we have are external user, they are merely added to a jira-internal organisation ... 

 

Regards

I.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events