compile userlist from subtasks

Issue #61 resolved
Matthew Rotenbury created an issue

I think I'm right with starting with the "Copy Parsed Text to a Field" post function, but can't quite get it to function correctly.

I'm trying to copy the assignee from only a specific type of sub-task to a multi-user field on the parent ticket. There could be any number of the specific type of sub-tasks (0-999) as well.

Can this function handle this logic?

I have an additional feature I'm trying to add that is somewhat related as well. For each of a certain type of sub-task, there is a start date field and an end date field. I want to copy the earliest of all the start dates and the latest of all the end dates to a start date field and end date field on the parent ticket.

Comments (4)

  1. Fidel Castro Armario repo owner

    I explain how to implement first functionality: Let's suppose we have a Multi User Picker custom field called "Team", and we want to select on that field all the assignees of subtasks of type "QA Subtask".

    1) We use post-function "Read fields from linked issues or subtasks" with the following configuration:

    Read subtasks - 1.png

    Read subtasks - 2.png

    Read subtasks - 3.png

    2) We use post-function "Copy a parsed text to a field" with the following configuration:

    Copy parsed text configuration.png

    Notice that:

    • We use prefix '+' in order to add all users contained in field "Ephemeral string 1". If we used prefix '-' instead, we would remove those users. If we didn't use any prefix, we simply would replace currently selected users in field "Team" by those contained in field "Ephemeral string 1".

    • "%{00061}" is field code for virtual field "Ephemeral string 1".

    Once configured, transition would look like this:

    Captura de pantalla 2014-08-04 a la(s) 17.02.18.png

  2. Fidel Castro Armario repo owner

    I explain now how to implement 2º functionality (3º functionality is obvious once explained 2º one): Let's suppose we want to overwrite Date Picker custom field "Start Date" with the earliest value of that field in all subtasks of type "QA Subtask", or doing nothing in case parent issue contains an earlier value than its subtasks do.

    We use post-function "Read fields from linked issues or subtasks" with the following configuration:

    Read subtasks - 1.png

    Read subtasks - 2.png

    Read subtasks - 3.png

    Once configured, transition will look like this:

    Transition configuration.png

  3. Log in to comment