Create linked issue in separate workflow and execute a delayed transition

Issue #872 resolved
Weston Rossborough created an issue

Hi Fidel,

I'm working on a use case where a workflow creates a linked issue in it's closing transition. The workflow in question is called MCSR: eRecord Approval Workflow V1.0. This new issue has an issue type that is in a separate workflow called MCSR: Change Workflow V6.2. When the new linked issue gets created in the separate workflow it should execute a delayed transition to the "Auto Approved" transition.

Normally the post functions in the MCSR: Change Workflow are working fine to execute the delayed transition when a new issue is created. However when the new linked issue is created from the eRecord Approval Workflow, the post function to execute the delayed transition to "Auto Approved" in the Change Workflow does not fire.

Should this be working out of the box, or is there additional work I need to do in these workflow post functions?

Here are my post functions in the eRecord Request workflow and the Change Workflow.

eRecordApprovalWorkflow.png

ChangeWorkflow.png

Thanks Weston

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi @WestonR,

    Try changing the delay from it's current value (i.e., 1000) to 2500.

    This means that the auto transition will be carried out 2.5 seconds (2,500 ms) after issue is created.

  2. Weston Rossborough reporter

    Fidel,

    While testing this I found that when the linked issue was being created from the first workflow it was setting the wrong priority level. This caused the post function for the delayed transition to not fire. I've fixed this and now the post function is working normally.

    Thanks for helping me identify the issue. I'll go ahead and close this ticket.

    Thanks, Weston

  3. Log in to comment