Add comment to sub-task when parent transitions

Issue #192 resolved
Will created an issue

I'd like to add a post-function so that when a parent issue is resolved all sub-tasks get a new comment in the form of:

"The parent issue of this subtask has been resolved as "<resolution goes here>" <Parent Issue Key>"

Could you advise?

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Will,

    You can do it using 2 post-functions in transition "Resolve Issue" of parent's workflow:

    1) Post-function "Copy a parsed text to a field" with the following configuration:

    copy-1.png

    Text to be parsed is:

    The parent issue of this subtask has been resolved as "%{00028}": %{00015}.
    

    Note that:

    • %{00028} is field code for "Resolution".
    • %{00015} is field code for "Issue Key".

    2) Post-function "Write field on linked issues or subtasks" with the following configuration:

    write-linked-1.png write-linked-2.png write-linked-3.png

    Once configured, transition "Resolve Issue" in parent's workflow will look like this:

    transition-conf.png

    This solution also works if parent issue and subtasks share the same workflow.

  2. Log in to comment