Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Access Insight object comment in automation rule

Jan-Peter Rusch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2018

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

1 answer

0 votes
Yinon Negev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 28, 2018

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

Suggest an answer

Log in or Sign up to answer