Delimiter? : Read fields from linked issues or subtasks

Issue #890 resolved
James Guerin created an issue

Hello,

I have a very simple workflow condition: I have a parent task with about 2-5 subtasks, on a certain transition I need to copy each subtask description into the parents description.

I am using Read fields from linked issues or subtasks with the following rules and almost everything works perfectly: jwt-read-fields.JPG

Except, that it's adding a "comma" after each item in the parents description - eg:

<subtask1 text>, <subtask2 text>, etc.

Is there a way to specify or (in my case) eliminate the "comma" delimiter?

Comments (4)

  1. Fidel Castro Armario repo owner

    Hi @jamesguerin,

    You can use "Copy a parsed text to a field" post-function with the following configuration:

    Captura de pantalla 2017-11-15 a las 10.40.20.png

    Text to be parsed is:

    toString(textOnIssueList(filterByIssueType(subtasks(), "Bug, New Feature, Story"), "\nh2. " + ^%{00000} + "\n" + ^%{00001} + "\n----\n"), "")
    

    where %{00000} is field code for Summary, and %{00001} is field code for Description.

    In my example I have selected the following 3 issue types: Bug, New Feature and Story. You should write the names of the ones you want to use in your case.

  2. Log in to comment