-
assigned issue to
Send an email Function for this transition
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)
-
repo owner -
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.
-
reporter Yes, it works, thank you a lot! And can I add additional filed to ephermal string 1, for example, issue key of linked issues ?
Thank you!
-
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. -
reporter Thank you a lot!
-
repo owner - changed status to resolved
You are welcome. I close the issue. Please, reopen it you need additional support.
- Log in to comment