Problem to auto transition an issue with an validator GenericTransactionException

Issue #408 closed
Guilherme Nogueira created an issue

Hi,

I'm facing a problem in jira 7.1.9:

"org.ofbiz.core.entity.GenericTransactionException: Commit failed, rollback previously requested by nested transaction."

I have a workflow 1 and workflow 2, when I execute transition close on workflow 2, it should transition workflow 1 to close as well. Workflow 1 have an validator in closed transition and when this validation doesn't "pass" (fail), workflow 2 display this error message:

Log1 attached.

Expected result: When workflow 1 validator fails, workflow 2 transition should be executed normally.

p.s. I also tested with latest version 2.2.19

Comments (5)

  1. Fidel Castro Armario repo owner

    Hi Guilherme,

    The post-function you are using to transition linked issues doesn't belong to JIRA Workflow Toolbox. The problem is in that post-function. It will happen whenever you try to execute a transition with unsatisfied conditions or validators. The problem is due to a modification in JIRA 7 API, but JIRA Workflow Toolbox has solved it. I propose you the following solution:

    Use "Write field on linked issues or subtasks" post-function instead of the one you are now using. You should use the following configuration:

    • Select a source type: parsed text (basic mode)
    • Source value: name_of_the_transition_to_be_executed
    • Target field: Execute transition (delayed execution)

    Let me know if you have any doubt about the rest of configuration parameters.

  2. Guilherme Nogueira reporter

    Hi Fidel,

    Sorry about that, I just realized after I opened this ticket.

    Thanks for your support and I'm going to user Workflow Toolbox postfunction.

    Regards, Guilherme Nogueira.

  3. Log in to comment