Empty Ephemeral Field 3 In Send Email

Issue #803 new
Julien L
created an issue

Hi,

I have several post functions in one of my workflow transitions. The first one creates an issue using the "Create issues and subtasks" post-function and has the checkbox "Save issue keys of created issues into Ephemeral String 3 virtual field as a comma separated list". The one after that sends an email using the "Send an email" post-function where I attempt to read the Ephemeral String 3 (%{00063}) field in the title and body of the message but the field never has any value. The post function does run since my issue gets created properly, and the email does get sent, just the value is empty.

Am I misunderstanding how the feature should work? Can you help me?

Jira Version: Core & Software 7.4.1 Thanks!

Best Regards,

Julien Lamongie

Comments (7)

  1. Julien L reporter

    I also noticed the following problems, which may or may not be related:

    • the "New comment" field to be set during the issue creation is not working, no comment is added.
    • the "Issue Link" is not being created either
  2. Julien L reporter

    I think I know what the problem is. Attempting to set the "Branch" field in my workflow is making several steps not work, including setting the ephemeral field, creating the comment, and the issue link. If I remove setting that field everything works. I guess the value I am trying to set to that field is not correct for the field type? Is there a place in the logs I can look for such an error in the future ?

  3. Julien L reporter

    The field type is "Single Issue Link Picker". This is from the "Easy Links for JIRA" addon which lets you create/remove links between issues.

    I checked the log, and it shows the problem:

    2017-09-20 07:51:28,533 http-nio-8080-exec-4 ERROR julien 471x509598x1 13jvgg7 192.168.27.214,192.168.60.56 /secure/CommentAssignIssue.jspa [c.f.j.plugins.workflowToolbox.CreateIssue] *** Error while trying to create an issue: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
    com.atlassian.jira.exception.CreateException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:588)
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:594)
        at com.atlassian.jira.issue.managers.RequestCachingIssueManager.createIssueObject(RequestCachingIssueManager.java:185)
        at sun.reflect.GeneratedMethodAccessor13136.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
        at com.sun.proxy.$Proxy588.createIssueObject(Unknown Source)
        ... 2 filtered
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
        at com.sun.proxy.$Proxy588.createIssueObject(Unknown Source)
        at com.fca.jira.plugins.workflowToolbox.CreateIssue.createIssue(CreateIssue.java:848)
        at com.fca.jira.plugins.workflowToolbox.CreateIssue.execute(CreateIssue.java:230)
        at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
        at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
        at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:557)
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:830)
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:787)
        at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:492)
        at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:162)
        ... 1 filtered
        at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
        ... 7 filtered
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        ... 52 filtered
        at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62)
        ... 12 filtered
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
        ... 47 filtered
        at com.almworks.jira.structure.event.interceptor.IssueLinksInterceptor.doHttpFilter(IssueLinksInterceptor.java:98)
        at com.almworks.jira.structure.util.servlet.AbstractStructureServletFilter.doFilter(AbstractStructureServletFilter.java:34)
        ... 14 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)
        ... 36 filtered
        at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
        ... 10 filtered
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
        ... 4 filtered
        at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
        ... 26 filtered
        at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
        ... 23 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)
    Caused by: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
        at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:766)
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:580)
        ... 270 more
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.atlassian.jira.issue.Issue
        at com.codedpoetry.easylinks.customfields.SingleIssueLinkCF.createValue(SingleIssueLinkCF.java:63)
        at com.atlassian.jira.workflow.function.issue.IssueCreateFunction.execute(IssueCreateFunction.java:81)
        at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
        at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
        at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:606)
        at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:742)
        ... 271 more
    

    I'm not sure what value to assign to such a custom field type. Looks like creating the appropriate link instead works, so I have a workaround. Any idea based on the stacktrace how I can provide a value to create it? Anyhow, it's definitely not a bug in JIRA Workflow Toolbox.

    Thanks for your help and for your great plugin.

  4. Log in to comment