Hi,
I want to create a Jira issue, if a comment is added to an Insight object. This works fine. But how can I map/copy the comment added to the Insight object to the description field of the Jira issue?
JP
Hi Jan-Peter.
As there are no Placeholders available for Comments, this most probably can be achieved by executing a Groovy Script.
Groovy script can be executed in the Automation Rule either:
1. BEFORE creating the Jira Issue - a script can fetch the Last Comment, and set it within a TextArea Attribute on the Object, which will then be used as a Palceholder in the Issue Description when the next Automation Action is creating it.
2. AFTER the Issue was created - to fetch the Last Comment and set it as the Issue's Description.
Alternatively, you can execute the second option as an Insight Groovy Script Postfunction on the Create Transition with a groovy condition to prevent the postfunction from running if no comment exists on the Object.
Please see our Documentation for Groovy Script Console and some examples that may be useful.
Note that we haven't tested this, but theoretically this should work.
Kind regards,
Yinon
Team Riada
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.