Hi All
I'm using script running to send customised emails. I've setup a "customer email listener "and also "Fast-track transition an issue". The idea being when a comment is added by the development team this would be picked up moved to a new status of "waiting for support" and an email sent to support.
What seems to be happening is the listeners are triggering but are not sending the email or moving the status so I think my condition is incorrect.
After that is working I need to figure out how to only trigger this if the comment is added by developers. I think "isUserMemberOfRole('jira-developers')" should work but not entirely sure where in the condition it should go.
Please help me resolve my condition issue. (I have other listeners based on events working fine).
custom email listerner.pngtransition.png
log:
2016-03-23 12:14:40,672 http-nio-8080-exec-16 ERROR [o.a.c.c.C.[.[localhost].[/].[noopservlet]] Servlet.service() for servlet [noopservlet] in context with path [] threw exception java.io.FileNotFoundException: /var/atlassian/application-data/jira/logos/jira-favicon-scaled.ico (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.atlassian.jira.lookandfeel.filter.ImageDownloader.doDownload(ImageDownloader.java:65) at com.atlassian.jira.lookandfeel.filter.FaviconInterceptor.doFilter(FaviconInterceptor.java:96) ... 55 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-03-23 12:15:24,791 http-nio-8080-exec-14 ERROR [o.a.c.c.C.[.[localhost].[/].[noopservlet]] Servlet.service() for servlet [noopservlet] in context with path [] threw exception java.io.FileNotFoundException: /var/atlassian/application-data/jira/logos/jira-favicon-scaled.ico (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.atlassian.jira.lookandfeel.filter.ImageDownloader.doDownload(ImageDownloader.java:65) at com.atlassian.jira.lookandfeel.filter.FaviconInterceptor.doFilter(FaviconInterceptor.java:96) ... 55 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
For complicated stuff like this, we need to break it down into parts and make sure all the parts are working before assembling the whole.
You said:
> I've setup a "customer email listener "and also "Fast-track transition an issue".
Can we do just one of those things and verify that it works, then we can move to the next part?
If it doesn't work, which one is it? What's the expected and actual outcome?
Ok, what do you want me to do? The Fast-Track transition would be first I have this setup, when a comment is added it shows that its fired but doesn't move the transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you just have a fast-track transition script, with the condition above? If it doesn't move the issue the logs should say why.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I have this, it fires but nothing happens which logs should I be looking at?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
atlassian-jira.log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting the below.
2016-03-23 12:14:40,672 http-nio-8080-exec-16 ERROR [o.a.c.c.C.[.[localhost].[/].[noopservlet]] Servlet.service() for servlet [noopservlet] in context with path [] threw exception java.io.FileNotFoundException: /var/atlassian/application-data/jira/logos/jira-favicon-scaled.ico (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.atlassian.jira.lookandfeel.filter.ImageDownloader.doDownload(ImageDownloader.java:65) at com.atlassian.jira.lookandfeel.filter.FaviconInterceptor.doFilter(FaviconInterceptor.java:96) ... 55 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-03-23 12:15:24,791 http-nio-8080-exec-14 ERROR [o.a.c.c.C.[.[localhost].[/].[noopservlet]] Servlet.service() for servlet [noopservlet] in context with path [] threw exception java.io.FileNotFoundException: /var/atlassian/application-data/jira/logos/jira-favicon-scaled.ico (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.atlassian.jira.lookandfeel.filter.ImageDownloader.doDownload(ImageDownloader.java:65) at com.atlassian.jira.lookandfeel.filter.FaviconInterceptor.doFilter(FaviconInterceptor.java:96) ... 55 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think that's relevant.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I add a comment this is all that is showing in the logs. I have checked and it is showing that the even has first. Although its not moved the status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct.
I will also need the same but for a customer too. So another path would be support email customer asking for more info, when the client replies I would want the status changing from waiting for customer to waiting for support and also support to receive an email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume you need to get a comment author and then check if it is a member of developer group. Is it so?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.