Transition all subtask to another state when the issue goes to another state?

Issue #852 resolved
Chau
created an issue

In the workflow, can we perform the post action like this: When the issue goes from SUBMITTED to APPROVED, move all the subtask to APPROVED? (assuming issue and subtask using the same workflow or can be separate but identical flow)

Also, what happen if any of the subtask are not already at SUBMITTED. Will the parent issue workflow fails to move or what is the consequences of this?

Thx

Comments (5)

  1. Fidel Castro Armario repo owner

    Hi @Chau,

    You can do it using Write field on linked issues or subtasks post-function in transition from status Submitted to Approved using the following configuration:

    Captura de pantalla 2017-10-18 a las 6.53.23.png Captura de pantalla 2017-10-18 a las 6.53.39.png Captura de pantalla 2017-10-18 a las 6.53.54.png

    In parameter "Filtering linked issues or subtasks by status:" you should check status Approved. The rest of parameters can rest empty.

    This solution can be used in a workflow shared by issues and subtasks. It also works well when there are already subtasks in status Approved.

  2. Chau reporter

    Hi Fidel, I try to do the same but it didn't move all the subtask to the correct state. Btw, how do I see the log or even confirm if the post action get triggered? This is what I concern the most using JWT post action, there is no such debug/log that we can troubleshoot? Or even write a custom message?

    Also, how do we exclude the link issues but only want to apply this for subtask?

  3. Fidel Castro Armario repo owner

    Hi @Chau,

    If you don't select any issue link type, linked issues will not be affected by the post-function.

    I agree that logging information should be improved in JWT. I will try improve this aspect in future versions. Meanwhile you can try writing some text into virtual field "New comment", and you will see an automatic comment being created in case issues are being selected.

    Please, attach a screenshot with the post-function's tab of the transition where you inserted the post-function. I want to see the whole configuration of the post-function, and the companion post-functions in the transition.

  4. Log in to comment