Send an email Function for this transition

Issue #924 resolved
mgorokhova
created an issue

Hello!

I use post-function "Send an email Function for this transition" and I want to send description of linked issues in email's body. Is it possible?

Thank you!

Comments (6)

  1. Fidel Castro Armario repo owner

    Hi @mgorokhova,

    Next version of the plugin will provide an improvement on "Send an email" post-function that will make it possible to implement your requirement very easily. Anyway we can also implement it using current version of JWT. I explain you how to do it:

    1) Use "Copy a parsed text to a field" post-function with a configuration like this one:

    • Target field: Ephemeral string 1
    • Parsing mode: advanced
    • Text to be parsed...:
    toString(fieldValue(%{00001}, linkedIssues("is blocked by, is cloned by")), "\n---------\n")
    

    After that you will have in "Ephemeral string 1" the descriptions of all issues linked to current issue with "is blocked by" and "is cloned by" issue link types.

    2) Now you can use "Ephemeral string 1" in "Send an email" post-function for composing the body of the email.

    Please, let me know if this solution works for you.

  2. Fidel Castro Armario repo owner

    Hi @mgorokhova,

    Try this string expression:

    toString(textOnIssueList(linkedIssues("is blocked by, is cloned by"), "Description of issue " + ^%{00015} + ":\n" + ^%{00001}), "\n-----------\n")
    

    where %{00015} is field code for Issue key, and %{00001} is field code for Description.

  3. Log in to comment