Workflow transition stopped working

Issue #711 resolved
HomeAway
created an issue

So we have a post-function that creates a ticket of a different issue type (List Pull) that also uses a different workflow. So List Pull's workflow has a validator that used to work for a while and it basically checks if the ticket Creator belongs to Releasers project role. Configuration of the validator looks like this:

At least one user in field "Creator" is at least in one of the following project roles: "Releasers".
Field must be initialized.
Validation will be skipped when:

    Transition is being triggered by a JIRA Workflow Toolbox post-function.


Message to show when validation fails: "List pull ticket type not available. Please open an analysis ticket instead.". 

The problem started last week. When I try to execute a transition that has a post-function to create a List Pull, I get the following errors in our atlassian-jira.log:

2017-08-02 10:58:23,344 http-nio-10.28.113.26-8080-exec-396  url:/secure/WorkflowUIDispatcher.jspa username:amishenin  ERROR amishenin 658x7526567x5 1l6tr7w 10.28.126.251 /secure/WorkflowUIDispatcher.js
pa [jira.cot.functions.CreateIssueFunction] Could not set the value of custom field Customer State
2017-08-02 10:58:23,346 http-nio-10.28.113.26-8080-exec-396  url:/secure/WorkflowUIDispatcher.jspa username:amishenin  ERROR amishenin 658x7526567x5 1l6tr7w 10.28.126.251 /secure/WorkflowUIDispatcher.js
pa [jira.cot.functions.CreateIssueFunction] Custom field: 'Barand' not found. Field was ignored.
2017-08-02 10:58:23,355 http-nio-10.28.113.26-8080-exec-396  url:/secure/WorkflowUIDispatcher.jspa username:amishenin  ERROR amishenin 658x7526567x5 1l6tr7w 10.28.126.251 /secure/WorkflowUIDispatcher.js
pa [jira.cot.functions.CreateIssueFunction] Can't set custom field 'Export Type' to value 'Excel' because it doesn't correspond to a valid custom field option or id.
2017-08-02 10:58:23,360 http-nio-10.28.113.26-8080-exec-396  url:/secure/WorkflowUIDispatcher.jspa username:amishenin  ERROR amishenin 658x7526567x5 1l6tr7w 10.28.126.251 /secure/WorkflowUIDispatcher.js
pa [jira.cot.functions.CreateIssueFunction] Can't set custom field 'Brand' to value 'DBM-36241' because it doesn't correspond to a valid custom field option or id.
2017-08-02 10:58:23,368 http-nio-10.28.113.26-8080-exec-396  url:/secure/WorkflowUIDispatcher.jspa username:amishenin  ERROR amishenin 658x7526567x5 1l6tr7w 10.28.126.251 /secure/WorkflowUIDispatcher.js
pa [jira.cot.functions.CreateIssueFunction] Could not create issue due to exception: com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow: List pull ticket 
type not available. Please open an analysis ticket instead.
com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow: List pull ticket type not available. Please open an analysis ticket instead.
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:585) [classes/:?]
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:594) [classes/:?]
        at com.atlassian.jira.issue.managers.RequestCachingIssueManager.createIssueObject(RequestCachingIssueManager.java:185) [classes/:?]
        at sun.reflect.GeneratedMethodAccessor5476.invoke(Unknown Source) [?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
        at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
        at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) [atlassian-plugins-core-4.2.9.jar:?]
        at com.sun.proxy.$Proxy350.createIssueObject(Unknown Source) [?:?]
        ... 2 filtered (DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
        at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) [?:?]
        at com.sun.proxy.$Proxy350.createIssueObject(Unknown Source) [?:?]
        at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:228) [?:?]
        at org.swift.jira.cot.functions.AbstractCreateFunction.createIssues(AbstractCreateFunction.java:185) [?:?]
        at org.swift.jira.cot.functions.AbstractCreateFunction.process(AbstractCreateFunction.java:159) [?:?]
        at org.swift.jira.library.AbstractPostFunction.execute(AbstractPostFunction.java:181) [?:?]
        at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:557) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:829) [classes/:?]
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:786) [classes/:?]
        at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:492) [classes/:?]
        at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:28) [classes/:?]
        ... 1 filtered (ActionSupport.java:165)
        at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) [jira-api-7.3.5.jar:?]
        ... 7 filtered (DefaultInterceptorChain.java:39) (NestedInterceptorChain.java:31) (ChainedInterceptor.java:16) (DefaultInterceptorChain.java:35) (GenericDispatcher.java:225) (GenericDispatcher.java:189) (JiraWebworkActionDispatcher.java:147)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.5.6]
        ... 16 filtered (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (JiraLastFilter.java:39) (ChainedFilterStepRunner.java:74) (JiraLastFilter.java:36) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (XContentTypeOptionsNoSniffFilter.java:20) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (HeaderSanitisingFilter.java:37) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (IteratingFilterChain.java:39) (DelegatingPluginFilter.java:58)
        at com.atlassian.jira.onboarding.postsetup.ui.PostSetupAnnouncementsFilter.doFilter(PostSetupAnnouncementsFilter.java:51) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.jira.tzdetect.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:77) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.jira.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:38) [?:?]
        ... 24 filtered (AbstractHttpFilter.java:32) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58) (ContextFilter.java:24) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58) (ContextFilter.java:24) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58) (ContextFilter.java:24) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58) (ContextFilter.java:24) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58) (ContextFilter.java:24) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.servicedesk.internal.web.ExternalCustomerLockoutFilter.doFilter(ExternalCustomerLockoutFilter.java:56) [?:?]
        ... 4 filtered (AbstractHttpFilter.java:32) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) [?:?]
        ... 4 filtered (AbstractHttpFilter.java:32) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter.doFilter(PrettyUrlsSiteMeshFixupFilter.java:32) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:55) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:79) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:51) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36) [?:?]
        ... 26 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (ServletFilterModuleContainerFilter.java:70) (ServletFilterModuleContainerFilter.java:58) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (AccessLogFilter.java:92) (AccessLogFilter.java:78) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (XsrfTokenAdditionRequestFilter.java:46) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (SiteMeshFilter.java:181) (SiteMeshFilter.java:85) (SitemeshPageFilter.java:112) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (PageBuilderFilter.java:81) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (CommittedResponseHtmlErrorRecoveryFilter.java:55) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (IteratingFilterChain.java:39) (DelegatingPluginFilter.java:58)
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.runWithChangedThreadName(AbstractThreadFilter.java:71) [?:?]
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.doFilter(AbstractThreadFilter.java:53) [?:?]
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.doFilter(AbstractThreadFilter.java:37) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:56) [?:?]
        ... 10 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (ServletFilterModuleContainerFilter.java:70) (ServletFilterModuleContainerFilter.java:58) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (MauEventFilter.java:49) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165)
        at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:80) [classes/:?]
        ... 1 filtered (SecurityFilter.java:242)
        at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:78) [classes/:?]
        ... 16 filtered (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (TrustedApplicationsFilter.java:103) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (BaseLoginFilter.java:148) (JiraLoginFilter.java:77) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (IteratingFilterChain.java:39) (DelegatingPluginFilter.java:58) (OAuthFilter.java:67) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.bonfire.web.filters.BonfireP3PFilter.doFilter(BonfireP3PFilter.java:42) [?:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:56) [?:?]
        ... 13 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (ServletFilterModuleContainerFilter.java:70) (ServletFilterModuleContainerFilter.java:58) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (ProfilingFilter.java:99) (JIRAProfilingFilter.java:16) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (JiraJohnsonFilter.java:53) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) [urlrewritefilter-4.0.3.jar:4.0.3]
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) [urlrewritefilter-4.0.3.jar:4.0.3]
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) [urlrewritefilter-4.0.3.jar:4.0.3]
        ... 3 filtered (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165)
        at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) [classes/:?]
        ... 5 filtered (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (IteratingFilterChain.java:39) (DelegatingPluginFilter.java:58)
                at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:181) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:134) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:87) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:64) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:174) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:130) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:121) [jira-servicedesk-3.4.2-REL-0020.jar:?]
        ... 4 filtered (AbstractHttpFilter.java:32) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.analytics.client.filter.JiraAnalyticsFilter.doFilter(JiraAnalyticsFilter.java:42) [analytics-client-5.2.0_1492614288000.jar:?]
        at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:39) [analytics-client-5.2.0_1492614288000.jar:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) [jwt-plugin-1.6.0-0005_1497733762000.jar:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) [atlassian-servlet-plugin-5.1.1.jar:?]
        ... 4 filtered (AbstractHttpFilter.java:32) (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.runWithChangedThreadName(AbstractThreadFilter.java:71) [plugin_187184378631690851_tomcat-filter-0.1.4.jar:?]
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.doFilter(AbstractThreadFilter.java:53) [plugin_187184378631690851_tomcat-filter-0.1.4.jar:?]
        at com.atlassian.ams.shipit.servlet.filter.AbstractThreadFilter.doFilter(AbstractThreadFilter.java:37) [plugin_187184378631690851_tomcat-filter-0.1.4.jar:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) [atlassian-servlet-plugin-5.1.1.jar:?]
        ... 3 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (DelegatingPluginFilter.java:58)
        at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:56) [atlassian-pretty-urls-plugin-2.1.2.jar:?]
        ... 25 filtered (DelegatingPluginFilter.java:64) (IteratingFilterChain.java:37) (ServletFilterModuleContainerFilter.java:70) (ServletFilterModuleContainerFilter.java:58) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (ChainedFilterStepRunner.java:74) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (AbstractCachingFilter.java:31) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (AbstractEncodingFilter.java:39) (AbstractHttpFilter.java:32) (PathMatchingEncodingFilter.java:41) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (JiraStartupChecklistFilter.java:72) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (MultipartBoundaryCheckFilter.java:36) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165)
        at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) [classes/:?]
        ... 28 filtered (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (ChainedFilterStepRunner.java:74) (JiraFirstFilter.java:59) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (GzipFilter.java:121) (GzipFilter.java:92) (JiraGzipFilter.java:44) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (InstantUpgradeHoldingFilter.java:99) (AbstractHttpFilter.java:32) (ApplicationFilterChain.java:192) (ApplicationFilterChain.java:165) (StandardWrapperValve.java:198) (StandardContextValve.java:108) (StandardHostValve.java:140) (ErrorReportValve.java:79) (StandardEngineValve.java:87) (AbstractAccessLogValve.java:620) (CoyoteAdapter.java:349) (Http11Processor.java:784) (AbstractProcessorLight.java:66) (AbstractProtocol.java:802) (NioEndpoint.java:1410) (SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.6]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
Caused by: [InvalidInputException: [Error map: [{}]] [Error list: [[List pull ticket type not available. Please open an analysis ticket instead.]]]
        at com.fca.jira.plugins.workflowToolbox.UserInFieldInRolValidator.validate(UserInFieldInRolValidator.java:37) [?:?]
        at com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:45) [classes/:?]
        at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1466) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1167) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:606) [osworkflow-2.9.0-atlassian-1.jar:2.9.0-atlassian-1]
        at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:580) [classes/:?]
        ... 310 more
2017-08-02 10:58:24,440 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager]     CREATE_ATTACHMENTS not granted by 'denied' workflow permission
2017-08-02 10:58:24,440 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager] CREATE_ATTACHMENTS granted by permission scheme but DENIED by workflow
2017-08-02 10:58:24,440 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager]     CREATE_ATTACHMENTS not granted by 'denied' workflow permission
2017-08-02 10:58:24,440 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager] CREATE_ATTACHMENTS granted by permission scheme but DENIED by workflow
2017-08-02 10:58:24,455 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager]     CREATE_ATTACHMENTS not granted by 'denied' workflow permission
2017-08-02 10:58:24,455 http-nio-10.28.113.26-8080-exec-415   url:/secure/AjaxIssueAction!default.jspa username:amishenin  INFO amishenin 658x7526743x6 1l6tr7w 10.28.126.251 /secure/AjaxIssueAction!default.jspa [atlassian.jira.security.WorkflowBasedPermissionManager] CREATE_ATTACHMENTS granted by permission scheme but DENIED by workflow

But the transitions works as soon as I remove that validator from List Pull's workflow.

Can you take a look at this please?

Comments (16)

  1. HomeAway reporter

    I just noticed, that is a post-function from a different plugin (Bob Swift Create on Transition).

    Create issue
    Summary: [List Pull] %entry% - %original_summary%
    Description: %original_description%
    Project: Original project
    Issue type: List Pull (25)
    Priority: Parent's priority
    Reporter: Parent issue's reporter
    Assignee: Unassigned
    Affected versions: None
    Fixed versions: None
    Components: Parent issue's components
    Due date: Parent issue's due date
    Link: %entry%, Link type: Correlates, Link direction: From issue key to new issue
    Copy original issue custom fields: Audience,Customer State,List Pull Description,Brand,Contact Attributes,Listing Attributes,Fields Requested,Export Type,Operational Send
    Set custom field: 10750, Value: %entry%
    JQL query: parent = %original_key%
    Create multiple issues: %jql_result_list%, 
    

    Any way we can make them work together or we will need to replace it with some custom solution using your plugin?

  2. HomeAway reporter

    Thanks for the explanation Fidel!

    I was trying to re-create the post-function with your plugin, but it gives me results quite different from what I expected.

    The link between original issue's sub-task and the new issue is not created at all, and the new issue has summary made of all values that were selected in an custom field, not the one that related. Do you provide support in configuration or I should figure it out on my own?

    This is what I have right now:

    Summary: text in basic parsing mode [List Pull] %{Brand} - %{Summary}

    Issue Link Type correlates with
    Issue List expression subtasks(%{Brand})

  3. HomeAway reporter

    The original goal is to create a List Pull issue for every sub-task of the original issue where the transition in fired from. Each of the sub-tasks being created automatically based on the values of custom field Brand which were selected during the original issue creation.

  4. Fidel Castro Armario repo owner

    Hi @HomeAway,

    Use the following configuration for setting the Summary:

    • Parsing mode: advanced
    • Text to be parsed: "[List Pull] " + ^% + " - " + %{00000} where %{00000} is field code for Summary.

    Sincerely, I don't understand how do you intend to link the new issues, but assuming that you want to link each new issue with every subtask in current issue, you should use the following issue list expression: subtasks().

    Please, let me know how do you want to link your new issues, which are not subtasks, but normal issues.

  5. HomeAway reporter

    So the Summary approach worked very well. However, when I use issue list expression "subtasks()", it creates multiple links for every List Pull issue created in every sub-task (see the screenshot attached). But we need to create a single link between the sub-task and the new List Pull related to that sub-task.

    For instance, we create the parent issue with two values in custom field "Brand": Colombia and New Zealand. Two Sub-Tasks will be automatically created in the parent issue, one for Colombia, another for New Zealand. I hit the "Create List Pull" button which fires the post-function in question and creates two List Pull issues, one linked directly to Colombia sub-task, another to New Zealand one.

    I've recently posted a configuration of a different plugin that allows us to have this result, maybe it can explain it better.

  6. HomeAway reporter

    Yes, a value of custom field "Brand" (id 10750) is copied to the corresponding subtask.

    So field Brand of the parent issue has two values (Colombia, New Zealand), but every subtask has a single value associated to that sub-task (Colombia for Colombia subtask and New Zealand for the New Zealand subtask).

  7. Log in to comment