How to capture Sub-Task assignee to set Parent Issue assignee in post-function transition?

Issue #882 resolved
GabrielJ created an issue

Dear Fidel,

I want to define assignee using post-function (parent) Issue, according to Sub-Task assignee with Sub-Task type (custom field) = 'QA'. (Assume that only 1 Sub-Task could be 'QA' type).

Is possible to implement it with JWT ?

Thanks, Gaby

Comments (7)

  1. Fidel Castro Armario repo owner

    Hi @gabyj,

    Sorry, but I don't understand your requirements. Please, try explaining it again using other words, and please, specify the following information.

    1. In which issue do you want to set assignee? In sub-task or in parent issue?
    2. Who do you want to assign the issue to, i.e., which value do you want to give to field Assignee?
    3. In which workflow do you want to insert the post-function? In sub-task's or in parent issue's workflow?
  2. GabrielJ reporter
    1. I want to set the assignee in Parent issue.
    2. Assignee in Parent issue should be the same assignee of Sub-task with Sub-Task Type = 'QA'.
    3. Post-function would be defined in Parent issue workflow.
  3. Fidel Castro Armario repo owner

    Hi @gabyj,

    You can use "Copy a parsed text to a field" in parent's workflow with the following configuration:

    • Target field: Assignee
    • Parsing mode: advanced
    • Text to be parsed...:first(fieldValue(%{00003}, filterByFieldValue(subtasks(), %{nnnnn}, =, "QA")))
    • Conditional execution:count(filterByFieldValue(subtasks(), %{nnnnn}, =, "QA")) > 0

    replacing nnnnn with field code for Sub-Task Type custom field.

    Note that %{00003} is field code for Assignee.

  4. Log in to comment